Skip to content

Commit 2669e3d

Browse files
authored
fix: add new auth error codes (supabase#30708)
* fix: add new error codes * fix: update auth error codes * fix: remove unecessary file * fix: lexicographically order error codes table * fix: remove reference line to navigation
1 parent fdcbc1d commit 2669e3d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

apps/docs/components/MDX/auth_error_codes_table.mdx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ To supplement HTTP status codes, Supabase Auth returns a string error code which
1717
| `email_provider_disabled` | Signups are disabled for email and password. |
1818
| `flow_state_expired` | PKCE flow state to which the API request relates has expired. Ask the user to sign in again. |
1919
| `flow_state_not_found` | PKCE flow state to which the API request relates no longer exists. Flow states expire after a while and are progressively cleaned up, which can cause this error. Retried requests can cause this error, as the previous request likely destroyed the flow state. Ask the user to sign in again. |
20+
| `hook_payload_invalid_content_type` | Payload from Auth does not have a valid Content-Type header. |
2021
| `hook_payload_over_size_limit` | Payload from Auth exceeds maximum size limit. |
2122
| `hook_timeout` | Unable to reach hook within maximum time allocated. |
2223
| `hook_timeout_after_retry` | Unable to reach hook after maximum number of retries. |
@@ -30,13 +31,15 @@ To supplement HTTP status codes, Supabase Auth returns a string error code which
3031
| `mfa_factor_name_conflict` | MFA factors for a single user should not have the same friendly name. |
3132
| `mfa_factor_not_found` | MFA factor no longer exists. |
3233
| `mfa_ip_address_mismatch` | The enrollment process for MFA factors must begin and end with the same IP address. |
34+
| `mfa_phone_enroll_not_enabled` | Enrollment of MFA Phone factors is disabled. |
35+
| `mfa_phone_verify_not_enabled` | Login via Phone factors and verification of new Phone factors is disabled. |
36+
| `mfa_totp_enroll_not_enabled` | Enrollment of MFA TOTP factors is disabled. |
37+
| `mfa_totp_verify_not_enabled` | Login via TOTP factors and verification of new TOTP factors is disabled. |
3338
| `mfa_verification_failed` | MFA challenge could not be verified -- wrong TOTP code. |
3439
| `mfa_verification_rejected` | Further MFA verification is rejected. Only returned if the [MFA verification attempt hook](https://supabase.com/docs/guides/auth/auth-hooks?language=add-admin-role#hook-mfa-verification-attempt) returns a reject decision. |
3540
| `mfa_verified_factor_exists` | Verified phone factor already exists for a user. Unenroll existing verified phone factor to continue. |
36-
| `mfa_totp_enroll_disabled` | Enrollment of MFA TOTP factors is disabled. |
37-
| `mfa_totp_verify_disabled` | Login via TOTP factors and verification of new TOTP factors is disabled. |
38-
| `mfa_phone_enroll_disabled` | Enrollment of MFA Phone factors is disabled. |
39-
| `mfa_phone_verify_disabled` | Login via Phone factors and verification of new Phone factors is disabled. |
41+
| `mfa_web_authn_enroll_not_enabled` | Enrollment of MFA Web Authn factors is disabled. |
42+
| `mfa_web_authn_verify_not_enabled` | Login via WebAuthn factors and verification of new WebAuthn factors is disabled. |
4043
| `no_authorization` | This HTTP request requires an `Authorization` header, which is not provided. |
4144
| `not_admin` | User accessing the API is not admin, i.e. the JWT does not contain a `role` claim that identifies them as an admin of the Auth server. |
4245
| `oauth_provider_not_supported` | Using an OAuth provider which is disabled on the Auth server. |

0 commit comments

Comments
 (0)