Optionalmessage: string | ErrorOptionsOptionalerrorOptions: ErrorOptionsOptionalcauseThe error code that is set in the code query parameter of the redirect URL.
⚠ NOTE: This property is going to be included in the URL, so make sure it does not hint at sensitive errors.
The full error is always logged on the server, if you need to debug.
Generally, we don't recommend hinting specifically if the user had either a wrong username or password specifically, try rather something like "Invalid credentials".
OptionalstackThe error type. Used to identify the error in the logs.
StatickindStatic OptionalprepareOptional override for formatting stack traces
StaticstackStatictypeStaticcaptureCreate .stack property on a target object
OptionalconstructorOpt: FunctionCreate .stack property on a target object
OptionalconstructorOpt: Function
Can be thrown from the
authorizecallback of the Credentials provider. When an error occurs during theauthorizecallback, two things can happen:error=CredentialsSignin&code=credentialsin the URL.codeis configurable.