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
it’s useful to have GenericError exported in addition to the other Error classes. This enables clients to quickly detect if they’re dealing with any kind of Auth0 Error:
Checklist
Describe the problem you'd like to have solved
Following up to:
it’s useful to have
GenericError
exported in addition to the other Error classes. This enables clients to quickly detect if they’re dealing with any kind of Auth0 Error:Describe the ideal solution
In
auth0-react/src/index.tsx
, exportGenericError
fromauth0-spa-js
:export { … + GenericError, … } from '@auth0/auth0-spa-js';
Alternatives and current workarounds
We can determine the GenericError by grabbing the prototype of any of the child errors:
Additional context
All other errors were exported in:
The text was updated successfully, but these errors were encountered: