-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnauthorizedError doesn't provide error message for android. #749
Comments
Error configured as a rule in auth0 dashboard
|
@lazzystep This PR should address your issue - #720 We are planning to release this soon. You can verify it as well and let us know your feedback. |
@poovamraj thank you, I tried it but it didn't help me. |
@poovamraj I double checked It and it seems that passing error doesn't allow developer to get value from description field which I think is important. |
@lazzystep Can you check out this PR - #751 The missing error description is added now. |
@poovamraj awesome, thank you! It solves my problem so I will close this issue. Will be waiting for this functionality in the future versions |
Checklist
Description
I'm using WebAuth to signup using email and password to get verification link and then be able to access the app. I get different error messages on iOS and Android.
At web dashboard I see error message:
Please verify your email before trying to log in.
error which is correct, but on android I receiveAn error occurred when trying to authenticate with the server
error. On iOS it seems correctAn unexpected error occurred. CAUSE: Please verify your email before trying to log in.
After a bit of debugging I found that error contains correct
description
, but not correctdetailMessage
.isVerificationRequired
is also set to false.So right now error gets to line:
promise.reject("a0.response.invalid", error.getMessage(), error);
and gets reject without necessary details. Can you add extra handler for it or provide some advices how to handle it so I can open a pr for it?Reproduction
sign up using email and password
Additional context
No response
react-native-auth0 version
3.0.1
React Native version
0.66.1
Expo version
No response
Platform
Android
Platform version(s)
all
The text was updated successfully, but these errors were encountered: