CSRF Mismatch Not Passed Back to custom login page using credentials #3734
Unanswered
davecarlson
asked this question in
Help
Replies: 2 comments
-
Please add a reproduction |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm seeing the same thing with [email protected] and [email protected]. As far as an reproducible example goes, I'll see what I can do, though I'm not sure if there's anything beyond just bootstrapping an empty Next.js project and adding some custom pages. I tried using |
Beta Was this translation helpful? Give feedback.
0 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.
-
Description 🐜
If there is a CSRF mismatch when you are using a custom Login Page, then the ?csrf=true is lost from the response from the callback in the redirect chain.
Provider: Credentials:
config:
Is this a bug in your own project?
No
How to reproduce ☕️
Create a dummy project with a simple custom login form
On first load of the page, the CSRF is invalid
Enter valid credentials
you are redirected back to the login page with ?callBackUrl= in the url, but no csrf=true, or error=
Screenshots / Logs 📽
No response
Environment 🖥
vercel
nextjs 12
nextjs-auth 4.1.2
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions