Next Auth Redirect
Answered
Shawty posted this in #help-forum
ShawtyOP
How can I make the next-auth redirect to a url after authorization? ( discord provider )
Right now it just redirects to the home page (
Right now it just redirects to the home page (
/)Answered by Transvaal lion
add callback in your function, for exemple : signIn('discord', { callbackUrl: your url })
3 Replies
Transvaal lion
add callback in your function, for exemple : signIn('discord', { callbackUrl: your url })
Answer
@Transvaal lion add callback in your function, for exemple : signIn('discord', { callbackUrl: your url })
ShawtyOP
signIn('discord', {
callbackUrl: "/dashboard",
})it just redirects back to home page
ShawtyOP
hold up i fixed it