Chapter 15: Error type should be 'CallbackRouteError'
https://github.com/vercel/next-learn/blob/b7a4366f682163a6643416c9cdf2d9c43d0fc542/dashboard/final-example/app/lib/actions.ts#L130
- 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
codestring is"credentials"for the[cause]and not for the original error, anderror.type : 'CallbackRouteError'
Though, even after reading CredentialsSignin docs I am not quite sure how/ where to capture this error.
If you allow, I can solve this bug, raised this ticket to confirm by claims. Thanks
@shubham-j-sde have you found a solution for this?
I'm not sure what you are looking for @gmr458, simply the tutorial code needs an update.
to replace CredentialsSignin with CallbackRouteError
Hi @shubham-j-sde @gmr458 ,
The cause is the [email protected], upgrade it to [email protected] to fix the issue.
I created a pull request to fix the template: #830 Please upvote my pull request 👍
Fixed https://github.com/vercel/next-learn/pull/983