diff --git a/apps/backend/src/routes/auth.ts b/apps/backend/src/routes/auth.ts index 100a4b5..c0cfe7f 100644 --- a/apps/backend/src/routes/auth.ts +++ b/apps/backend/src/routes/auth.ts @@ -55,8 +55,7 @@ export async function authRoutes(app: FastifyInstance) { state, }); const authUrl = `${GITHUB_AUTH_URL}?${params}`; - console.log('--- GITHUB OAUTH REDIRECT ---'); - console.log('URL:', authUrl); + app.log.debug({ provider: 'github' }, 'OAuth redirect initiated'); return reply.redirect(authUrl); }); @@ -208,8 +207,7 @@ app.get('/github/callback', async (request: FastifyRequest<{ Querystring: OAuthC access_type: 'offline', }); const authUrl = `${GOOGLE_AUTH_URL}?${params}`; - console.log('--- GOOGLE OAUTH REDIRECT ---'); - console.log('URL:', authUrl); + app.log.debug({ provider: 'google' }, 'OAuth redirect initiated'); return reply.redirect(authUrl); });