How do I extend the AuthError error class #9547
Unanswered
monsterooo
asked this question in
Help
Replies: 1 comment
-
Hey, I had similar issue but I've solved it in slightly different way: by throwing Error with different
then in error handler:
Hope that helps. |
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.
-
hi, I want to make a custom AuthError to verify that the user has email authentication, so I'll write it like this
next-auth version 5.beta
Then my nextjs action is written like this, where the case "EmailVerificationError" will cause a type mismatch problem
Has anyone experienced this problem? thank you.
Beta Was this translation helpful? Give feedback.
All reactions