You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think there's a guide on how to handle errors produced by our module. I can see the importance of it, however, support for errors is not there yet.
What information would you like to get out of the error? I am slowly starting to introduce typed errors to our module, so your input will be valuable
The issue here is that when I submit my login form with an invalid username using the signIn() method, the external API responds with a 401 (Unauthorised). Unless I wrap the call in a try/catch and set the error in my form based on what comes back in the response as above, the page gives me no feedback as to what happened.
So I guess the question is, is my code above the correct way of going about this? Or should I be doing it some other way?
Describe the feature
There is no documentation on how to handle errors from external APIs when signing in using the local provider.
How would you implement this?
The only way I've managed to implement this is to use the following code. I'm not sure if there's any other way.
Additional information
Provider
The text was updated successfully, but these errors were encountered: