How to display Credentials Sign-in Error on Custom Sing-in page when Invalid email or password Authjs 5 #12786
Unanswered
nsajeevan89
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Authjs v5, and Nextjs 15.
When user try to login with wrong email or password, or validation error. the error message should display to user like "Sign in failed. Check the details you provided are correct." I have set auth.ts file as per the document. So, Can someone help me to display the error message in the Sign-in form. Also can you give me how to do CSRF token, and which should be server-side and client-side. What is the best practice?
Auth.ts:
Sign-in custom page:
Beta Was this translation helpful? Give feedback.
All reactions