Better error messges
See original GitHub issueThere are several errors that can occur during the auth flow and although they are passed down to the JS, they could have a better format.
E.g. when the user cancels the popup asking for permission to open the browser and the user cancels, error.message
reads as the following:

In this case, the error code is -3, which means either that the user manually canceled the OAuth authorization code flow or the auth request returns with unauthorized_client.
However, it would be very tricky to parse this error properly as it’s in a string and the error.code
is just RNAppAuth Error
which is not very useful.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Designing Better Error Messages UX - Smashing Magazine
Designing Better Error Messages UX · Not All Error Messages Are Equal # · Never Rely On Red Color Alone # · Avoid...
Read more >Best 10 Examples And Guidelines For Error Messages
Best 10 Examples And Guidelines For Error Messages · 1. Keep language clear and concise · 2. Keep user actions specific and logical...
Read more >How to Write Good Error Messages - UX Planet
1. Be Clear And Not Ambiguous · 2. Be Short And Meaningful · 3. Don't Use Technical Jargons · 4. Be Humble —...
Read more >Error Messages: Examples, Best Practices & Common Mistakes
1. Write for humans (be understandable) ; 2. Make sure the message is helpful ; 3. Use a touch of humor ; 4....
Read more >When life gives you lemons, write better error messages
This is an example of a good error message. It explains what happened and why, provides reassurance, is empathetic, helps the user fix...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we can call this resolved with v6.0.0 where we merged a contribution to expose the OAuth error codes
Ah, fair point. Perhaps I got a bit over enthusiastic with the closing issues 😄
Since this issue was opened, we’ve had two PRs to improve error messages - one was in v5.0.0 to add consistent naming, and the other in v6.0.0 to expose the auth codes. I think it might be best to open a new issue if we need further improvement.
As you’ve just looked into this recently - would you mind explaining what the current error response is, and what you would like to see instead, and we can start a new discussion based on that?