Technical error message
Suitable for logging and debugging. May contain technical details not appropriate for end users.
Optional originalOriginal error from the provider (for debugging)
Preserved for detailed error analysis and debugging. Can be any type (Error, object, string, etc.)
Semantic error type for programmatic handling
Use this in switch statements or if conditions to handle different error scenarios appropriately.
Optional userUser-friendly error message
A message suitable for displaying to end users. Explains the error in plain language and may suggest next steps.
"Your session has expired. Please log in again."
Standardized auth error with categorization
Provides both machine-readable error types and human-readable messages. Each provider implements classifyErrorInternal() to map their specific errors to this standard format.
Example