From a17a8a87994a646e4a0ce61ba16701adce88232c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 12 Nov 2025 14:06:58 +0000 Subject: [PATCH] Fix: Hardcode redirect URI pour OAuth2 --- routes/calendar.routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/calendar.routes.js b/routes/calendar.routes.js index 931e5c9..50f7fe9 100644 --- a/routes/calendar.routes.js +++ b/routes/calendar.routes.js @@ -41,9 +41,9 @@ async function getOAuth2Client(customRedirectUri = null) { throw new Error('Client ID et Client Secret non configurés'); } - // Utiliser l'URI personnalisée si fournie, sinon utiliser APP_URL ou localhost + // Utiliser l'URI personnalisée si fournie, sinon utiliser l'URL de production const redirectUri = customRedirectUri || - `${process.env.APP_URL || 'http://localhost:2222'}/api/calendar/oauth-callback`; + 'https://note.ffnancy.fr/api/calendar/oauth-callback'; return new google.auth.OAuth2( clientId.value,