nextauth custom error
Unanswered
Minskin posted this in #help-forum
MinskinOP
Yesterday i have build a custom credentials provider with next auth, next i would like to return a custom error to the user, which i get from my backend. For example "email not found". I have tried by throwing an error inside the authorize function, but then got a stacktrace.
1 Reply
MinskinOP
What is the best way to return a custom error message then, instead of returning null?