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`,
}),
],
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