diff --git a/.changeset/green-spies-fold.md b/.changeset/green-spies-fold.md new file mode 100644 index 00000000000..12bc18f86da --- /dev/null +++ b/.changeset/green-spies-fold.md @@ -0,0 +1,5 @@ +--- +"@thirdweb-dev/auth": patch +--- + +add logging to authenticate diff --git a/packages/auth/src/fastify/helpers/user.ts b/packages/auth/src/fastify/helpers/user.ts index ed1217a433e..e76a42db233 100644 --- a/packages/auth/src/fastify/helpers/user.ts +++ b/packages/auth/src/fastify/helpers/user.ts @@ -62,6 +62,7 @@ export async function getUser< const token = getToken(req); if (!token) { + console.error("Error: No auth token found"); return null; } @@ -75,6 +76,7 @@ export async function getUser< }, }); } catch (err) { + console.error(`Authenticate Error: ${(err as Error)?.message}`); return null; }