Skip to content

Commit 3a30f45

Browse files
authored
fix: add additional session related errors (supabase#30828)
* fix: add additional session related errors * fix: add link to sessions doc * fix: update auth error codes table
1 parent d38ac7a commit 3a30f45

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/docs/components/MDX/auth_error_codes_table.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ To supplement HTTP status codes, Supabase Auth returns a string error code which
5555
| `provider_email_needs_verification` | Not all OAuth providers verify their user's email address. Supabase Auth requires emails to be verified, so this error is sent out when a verification email is sent after completing the OAuth flow. |
5656
| `reauthentication_needed` | A user needs to reauthenticate to change their password. Ask the user to reauthenticate by calling the `supabase.auth.reauthenticate()` API. |
5757
| `reauthentication_not_valid` | Verifying a reauthentication failed, the code is incorrect. Ask the user to enter a new code. |
58+
| `refresh_token_not_found` | Session containing the refresh token not found. |
59+
| `refresh_token_already_used` | Refresh token has been revoked and falls outside the refresh token reuse interval. See the [documentation on sessions](https://supabase.com/docs/guides/auth/sessions) for further information. |
5860
| `request_timeout` | Processing the request took too long. Retry the request. |
5961
| `same_password` | A user that is updating their password must use a different password than the one currently used. |
6062
| `saml_assertion_no_email` | SAML assertion (user information) was received after sign in, but no email address was found in it, which is required. Check the provider's attribute mapping and/or configuration. |
@@ -66,6 +68,7 @@ To supplement HTTP status codes, Supabase Auth returns a string error code which
6668
| `saml_provider_disabled` | Using [Enterprise SSO with SAML 2.0](https://supabase.com/docs/guides/auth/enterprise-sso/auth-sso-saml) is not enabled on the Auth server. |
6769
| `saml_relay_state_expired` | SAML relay state is an object that tracks the progress of a `supabase.auth.signInWithSSO()` request. The SAML identity provider should respond after a fixed amount of time, after which this error is shown. Ask the user to sign in again. |
6870
| `saml_relay_state_not_found` | SAML relay states are progressively cleaned up after they expire, which can cause this error. Ask the user to sign in again. |
71+
| `session_expired` | Session to which the API request relates has expired. This can occur if an inactivity timeout is configured, or the session entry has exceeded the configured timebox value. See the [documentation on sessions](https://supabase.com/docs/guides/auth/sessions) for more information. |
6972
| `session_not_found` | Session to which the API request relates no longer exists. This can occur if the user has signed out, or the session entry in the database was deleted in some other way. |
7073
| `signup_disabled` | Sign ups (new account creation) are disabled on the server. |
7174
| `single_identity_not_deletable` | Every user must have at least one identity attached to it, so deleting (unlinking) an identity is not allowed if it's the only one for the user. |

0 commit comments

Comments
 (0)