signin callback redirect with Credential Provider #2870
Unanswered
Lombardoc4
asked this question in
Help
Replies: 1 comment 4 replies
-
The purpose of the Your "workaround" sounds like the correct solution to me. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
I want to redirect the user to a new page, if they are a new user. If I return false I get the error page but never the redirect to a custom page. Is it possible this functionality is not supported with the Credentials Provider
based from This Example
I've create a work around using the callbackUrl and the sessionToken
Setting the sessionToken via the jwtToken
On the 'auth/reset-password' file there is a redirect:
How to reproduce ☕️
./components/header.js
./pages/api/auth/[...nextauth].js
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions