auth0-react-samples
auth0-react-samples copied to clipboard
Handle 403 Insufficient Scope errors in UI
hello,
when testing an RBAC-enabled external API, there are quite a lot of opportunities for this error to show up:

this manifests as a silent error in the UI (aka nothing happens) and can be quite frustrating. i recommend detecting this error, and showing it in the UI with recommendations on resources or a checklist to help people fix their Insufficient scope errors in auth0.
cc @frederikprijck who knows what this is like
Thanks @sw-yx, there is definitely an opportunity to show better error handling here, I'd like to implement this in a generic way so that when you encounter any error, we highlight that on the screen.
Let me leave this open and I'll try to find some time next week to implement that.