mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(api): auth error logging (#58614)
This commit is contained in:
committed by
GitHub
parent
93536013a1
commit
478ac3b3c5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user