You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot set a custom redirect uri for the Google provider. It always seems to just send the default /api/auth/providers/google instead, which results in an error from Google authenticator due to redirect_uri mismatch.
server/routes/nuxt-api/auth/[...].ts (yes, I am trying every option that came to my mind)
providers: [
// @ts-ignore Import is exported on .default during SSR, so we need to call it this way. May be fixed via Vite at some point
GoogleProvider.default({
clientId: process.env.GOOGLE_APPID,
options: {
callbackUrl: `${process.env.APP_URL}/auth/callback`,
callback_url: `${process.env.APP_URL}/auth/callback`,
redirect_uri: `${process.env.APP_URL}/auth/callback`,
redirectUri: `${process.env.APP_URL}/auth/callback`,
redirect_url: `${process.env.APP_URL}/auth/callback`,
redirectUrl: `${process.env.APP_URL}/auth/callback`,
user: false,
},
callbackUrl: `${process.env.APP_URL}/auth/callback`,
callback_url: `${process.env.APP_URL}/auth/callback`,
redirect_uri: `${process.env.APP_URL}/auth/callback`,
redirectUri: `${process.env.APP_URL}/auth/callback`,
redirect_url: `${process.env.APP_URL}/auth/callback`,
redirectUrl: `${process.env.APP_URL}/auth/callback`,
}),
],
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
No response
Describe the bug
I cannot set a custom redirect uri for the Google provider. It always seems to just send the default /api/auth/providers/google instead, which results in an error from Google authenticator due to redirect_uri mismatch.
Here's my configuration:
nuxt.config.js
server/routes/nuxt-api/auth/[...].ts (yes, I am trying every option that came to my mind)
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: