Catch CLIENT_FETCH_ERROR. #12417
Unanswered
chienzo123
asked this question in
Help
Replies: 0 comments
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, everyone
When using
SignIn
fromnext-auth/react
orSessionProvider
, I want to test the case where the API/auth/session
fails will show the error modal but i cannot catch this error.I tried using an error boundary, but it couldn't catch the error. Is there a way to catch the CLIENT_FETCH_ERROR in the provider or after calling signIn?
The error i get in console.

Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions