mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-18 12:49:29 +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');
|
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 ||
|
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(
|
return new google.auth.OAuth2(
|
||||||
clientId.value,
|
clientId.value,
|
||||||
|
|||||||
Reference in new issue
Block a user