Skip to content
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

Export errors for type checking #716

Merged
merged 2 commits into from
Mar 8, 2021
Merged

Export errors for type checking #716

merged 2 commits into from
Mar 8, 2021

Conversation

adamjmcgrath
Copy link
Contributor

Description

import { AuthenticationError } from '@auth0/auth0-spa-js';

if (e instanceof AuthenticationError && e.error === 'login_required') {
  // prompt the user to login again
}

References

fixes #700

@adamjmcgrath adamjmcgrath added CH: Added PR is adding feature or functionality review:small Small review labels Mar 4, 2021
@adamjmcgrath adamjmcgrath added this to the vNext milestone Mar 4, 2021
@adamjmcgrath adamjmcgrath requested a review from a team as a code owner March 4, 2021 18:03
@stevehobbsdev stevehobbsdev merged commit 5bf5292 into master Mar 8, 2021
@stevehobbsdev stevehobbsdev deleted the export-errors branch March 8, 2021 15:26
@stevehobbsdev stevehobbsdev mentioned this pull request Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Added PR is adding feature or functionality review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AuthenticationError not exported
3 participants