Next.js Discord

Discord Forum

Next Auth, customer o auth provider, change redirect url

Unanswered
Highlander posted this in #help-forum
Open in Discord
HighlanderOP
Hi
i had a question relating to nextauth redirect url
in next auth custom provider .
I want to set my own redirect url instead of api/auth/callback/{providername}

i want to set it lets say http://localhost:3001/dashboard


i did this on sign in but it still redirects me - signIn('folderit', { callbackUrl: '/dashboard' })

how do i do that.

0 Replies