Skip to content

Commit

Permalink
fix: add new error codes (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay authored Nov 15, 2024
1 parent fd9248d commit dfb40d2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/lib/error-codes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export type ErrorCode =
| 'no_authorization'
| 'user_not_found'
| 'session_not_found'
| 'session_expired'
| 'refresh_token_not_found'
| 'refresh_token_already_used'
| 'flow_state_not_found'
| 'flow_state_expired'
| 'signup_disabled'
Expand Down Expand Up @@ -69,3 +72,18 @@ export type ErrorCode =
| 'over_email_send_rate_limit'
| 'over_sms_send_rate_limit'
| 'bad_code_verifier'
| 'anonymous_provider_disabled'
| 'hook_timeout'
| 'hook_timeout_after_retry'
| 'hook_payload_over_size_limit'
| 'hook_payload_invalid_content_type'
| 'request_timeout'
| 'mfa_phone_enroll_not_enabled'
| 'mfa_phone_verify_not_enabled'
| 'mfa_totp_enroll_not_enabled'
| 'mfa_totp_verify_not_enabled'
| 'mfa_webauthn_enroll_not_enabled'
| 'mfa_webauthn_verify_not_enabled'
| 'mfa_verified_factor_exists'
| 'invalid_credentials'
| 'email_address_not_authorized'

0 comments on commit dfb40d2

Please sign in to comment.