mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-11 17:29:37 +02:00
Fix: Hardcode redirect URI pour OAuth2
This commit is contained in:
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user