|
if (error instanceof AuthError) { |
- CredentialsSignin is not an Instance of AuthError
- In case of uncaught erros by signIn CallbackRouteError, also as it mentions, one can affirm with stackTrace at [auth][cause]
- I have been following this course checked by logging error, the
code string is"credentials" for the [cause] and not for the original error, and error.type : 'CallbackRouteError'
Though, even after reading CredentialsSignin docs I am not quite sure how/ where to capture this error.