fix(api): auth error logging (#58614)

This commit is contained in:
Oliver Eyton-Williams
2025-02-06 20:37:30 +01:00
committed by GitHub
parent 93536013a1
commit 478ac3b3c5
+2 -1
View File
@@ -112,7 +112,8 @@ export const auth0Client: FastifyPluginCallbackTypebox = fp(
if (error instanceof Error && error.message === 'Invalid state') {
fastify.log.error('Auth failed: invalid state');
} else {
fastify.log.error('Auth failed', error);
fastify.log.error('Auth failed:');
fastify.log.error(error);
fastify.Sentry.captureException(error);
}
// It's important _not_ to redirect to /signin here, as that could