debug: more state logging

This commit is contained in:
Steve Korshakov 2025-08-26 20:51:45 -07:00
parent 4040325524
commit f8cd32b4f4

View File

@ -432,6 +432,7 @@ export async function startApi(): Promise<{ app: FastifyInstance; io: Server }>
// Verify the state token to get userId
const tokenData = await auth.verifyGithubToken(state);
if (!tokenData) {
log({ module: 'github-oauth' }, `Invalid state token: ${state}`);
return reply.redirect('https://app.happy.engineering?error=invalid_state');
}