Fix: Hardcode redirect URI pour OAuth2

This commit is contained in:
Claude committed 2025-11-12 14:06:58 +00:00
1 parent 5ebaa72136
commit a17a8a8799
1 file changed
+2 -2
+2 -2
View File
@@ -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,