How to return custome error message to the client from next-auth@beta #11017
Unanswered
sarowarhosen03
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'm flowed as authjs documentation said but its not working , i don't understand whats going wrong , what the problem to sending custom error message to the Clint why auth.js make it difficult ?
i can get the error message by using server action but it's make difficult to updating useSession hook value after login without manula reload,
and when tring to use signIn form next-auth/react the error message cannot accesed
why auth.js make it this much complicated,
just simply allow developer to done there job easily
i have opens a github repo https://github.com/sarowarhosen03/next-auth
this doc i'm tried https://authjs.dev/getting-started/providers/credentials#custom-error-messages
here is my auth.js
my login from is
Beta Was this translation helpful? Give feedback.
All reactions