This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Question: Handling errors in response #78
Comments
Hi there, what do you think @elitan ? Best, |
Sounds reasonable. Do you have a good example of where this is not the case right now? so I get a better understanding. |
You can find the error message on try {
await login({ email, password })
catch (err) {
showError(err.response.data) // data is an object with `message` and other fields
} |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
Thank you for the SDK and the hasura-backend-plus project, this has made writing new applications for user management sure simple.
I was wondering how errors are handled when using the sdk? I do not see any error examples in the documentation. Specifically, login errors or registration errors for various conditions (incorrect password, user exists.. and such)
The text was updated successfully, but these errors were encountered: