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
Describe the bug
In the docs it says signIn('email', { redirect: false }) should keep you on the same page, but it doesn't. It still redirects to /api/auth/verify-request?provider=email&type=email. I upgraded to v3.13.0 to see if that helped but it did not.
Steps to reproduce
I have it set up like this
signIn('email',{redirect: false})`
Include a link to public repository which can be used to reproduce the behaviour.
Expected behavior
I expect it to not redirect to /api/auth/verify-request?provider=email&type=email
Screenshots or error logs
Here are the logs from the server
[next-auth][debug][typeorm_get_user_by_email] alexcoryregister@gmail.com
[next-auth][debug][typeorm_create_verification_request] alexcoryregister@gmail.com
REDIRECT http://a.local:3000/?forYou=true <- this was called in the redirect callback
Additional context
Seems like issue #1542 has the same problem he's just reporting something different. Notice he has redirect: false but it's still redirecting.
Feedback Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
Found the documentation helpful
Found documentation but was incomplete
Could not find relevant documentation
Found the example project helpful
Did not find the example project helpful
The text was updated successfully, but these errors were encountered:
@alex-cory Just saw this. FYI, my page is not redirecting. The redirect: false is working as expected. What I am seeing is after successful sign in (i.e. the page I enter the email on stays on that page, but I click on the email link I get to verify), the callbackUrl value is ignored and it always go to the home page. But the initial behavior when calling sign in does work as expected. Unsure why you are seeing it change pages like you are, but that is the opposite of what I am seeing at that stage.
Describe the bug
In the docs it says
signIn('email', { redirect: false })
should keep you on the same page, but it doesn't. It still redirects to/api/auth/verify-request?provider=email&type=email
. I upgraded tov3.13.0
to see if that helped but it did not.Steps to reproduce
I have it set up like this
Include a link to public repository which can be used to reproduce the behaviour.
Expected behavior
I expect it to not redirect to
/api/auth/verify-request?provider=email&type=email
Screenshots or error logs
Here are the logs from the server
Additional context
Seems like issue #1542 has the same problem he's just reporting something different. Notice he has
redirect: false
but it's still redirecting.Feedback
Documentation refers to searching through online documentation, code comments and issue history. The example project refers to next-auth-example.
The text was updated successfully, but these errors were encountered: