Next.js Discord

Discord Forum

Credentials provider: authorize. Custom error types

Unanswered
oxmaster posted this in #help-forum
Open in Discord
Avatar
oxmasterOP
I can return either null or user. How can I set up my user errors, for example, "invalid data" or "the user does not exist". Or are these the very restrictions that are indicated in the warning in the documentation about Credentials provider

3 Replies

Avatar
oxmasterOP
Image
At the same time, I can't call my "throw new Error()" because I get the error "CallBackRouteError"
Avatar
oxmasterOP