Next.js Discord

Discord Forum

Google provider, Error: NEXT_REDIRECT

Unanswered
Atlantic herring posted this in #help-forum
Open in Discord
Atlantic herringOP
Google provider, Error: NEXT_REDIRECT

14 Replies

are you using redirect function? if so, move it out of try catch
Atlantic herringOP
this is my code, which redirect should i move?
you can pass the redirectUrl to signin function in the second parameter
signIn('google', {redirectTo: 'url'})
Atlantic herringOP
this the error from oauth
try add codeChallengeMethod: 'S256' to authorization params
Atlantic herringOP
When I remove the " ;false from the url google auth it works
but how to remove it from next-auth?
where this ;false comes from?
Atlantic herringOP
I add it here
Atlantic herringOP
i found the issue this code working
this wont working,
when I add trycatch it not working