Invalid configuration or setup error
Usually indicates a problem with the auth provider configuration (wrong client ID, invalid redirect URI, etc.)
User interaction required (e.g., consent, MFA)
Mapped from:
Network error communicating with auth provider
Could be DNS failure, timeout, or other connectivity issues.
No active user session found - user needs to log in
Mapped from:
Token has expired - user needs to refresh or re-authenticate
Mapped from:
Generic/unknown error
Used when the error doesn't fit into any other category. The error message and originalError should provide more details.
User cancelled the authentication flow
Typically doesn't require showing an error message to the user, as the cancellation was intentional.
Standardized authentication error types
Abstracts provider-specific error names (like "BrowserAuthError", "InteractionRequiredAuthError") into semantic categories that application code can handle consistently.
This eliminates the need for consumers to check provider-specific error properties like
err.name === 'BrowserAuthError'.Example