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 need to change them because Google asks Authorized redirect URIs = callbackUrl. And url with localhost does not work in production.
I tried changing NEXTAUTH_URL in the env file and the same <SessionProvider session={session} baseUrl={process.env.NEXTAUTH_URL}>, nothing works, I use next auth v5
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Please tell me how to change the callbackUrl and signInUrl so that the request api/auth/providers returns not the localhost, but my domain here:
{
"google": {
"id": "google",
"name": "Google",
"type": "oidc",
"signinUrl": "http://localhost:3000/api/auth/signin/google",
"callbackUrl": "http://localhost:3000/api/auth/callback/google"
},
"credentials": {
"id": "credentials",
"name": "Credentials",
"type": "credentials",
"signinUrl": "http://localhost:3000/api/auth/signin/credentials",
"callbackUrl": "http://localhost:3000/api/auth/callback/credentials"
}
}
I need to change them because Google asks Authorized redirect URIs = callbackUrl. And url with localhost does not work in production.
I tried changing NEXTAUTH_URL in the env file and the same
<SessionProvider session={session} baseUrl={process.env.NEXTAUTH_URL}>
, nothing works, I use next auth v5Beta Was this translation helpful? Give feedback.
All reactions