The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
docs(Auth): update signup behavior for existing confirmed user (#20638)
Kamil Bażanow616a6981baea
diff --git a/apps/docs/spec/examples/examples.yml b/apps/docs/spec/examples/examples.ymlindex bac575211da..064e259a03e 100644--- a/apps/docs/spec/examples/examples.yml+++ b/apps/docs/spec/examples/examples.yml@@ -121,8 +121,8 @@ functions:- If **Confirm email** is disabled, both a `user` and a `session` are returned.- By default, when the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration).- If signUp() is called for an existing confirmed user:- - If **Confirm email** is enabled in [your project](https://supabase.com/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.- - If **Confirm email** is disabled, the error message, `User already registered` is returned.+ - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.+ - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.- To fetch the currently logged-in user, refer to [`getUser()`](/docs/reference/javascript/auth-getuser).examples:- id: sign-up.diff --git a/apps/docs/spec/supabase_csharp_v0.yml b/apps/docs/spec/supabase_csharp_v0.ymlindex d9bb738f9d5..ba906a6bda2 100644--- a/apps/docs/spec/supabase_csharp_v0.yml+++ b/apps/docs/spec/supabase_csharp_v0.yml@@ -125,8 +125,8 @@ functions:- If **Confirm email** is disabled, both a `user` and a `session` are returned.- When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration).- If SignUp() is called for an existing confirmed user:- - If **Confirm email** is enabled in [your project](https://supabase.com/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.- - If **Confirm email** is disabled, the error message, `User already registered` is returned.+ - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.+ - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.examples:- id: sign-upname: Sign up.diff --git a/apps/docs/spec/supabase_dart_v2.yml b/apps/docs/spec/supabase_dart_v2.ymlindex 9201308591e..84b48a1bfdd 100644--- a/apps/docs/spec/supabase_dart_v2.yml+++ b/apps/docs/spec/supabase_dart_v2.yml@@ -61,8 +61,8 @@ functions:- If **Confirm email** is disabled, both a `user` and a `session` are returned.- When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration).- If signUp() is called for an existing confirmed user:- - If **Confirm email** is enabled in [your project](https://supabase.com/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.- - If **Confirm email** is disabled, the error message, `User already registered` is returned.+ - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.+ - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.examples:- id: sign-upname: Sign up.diff --git a/apps/docs/spec/supabase_js_v2.yml b/apps/docs/spec/supabase_js_v2.ymlindex b243d6eb19e..ea0e1db6ba5 100644--- a/apps/docs/spec/supabase_js_v2.yml+++ b/apps/docs/spec/supabase_js_v2.yml@@ -234,8 +234,8 @@ functions:- If **Confirm email** is disabled, both a `user` and a `session` are returned.- When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration).- If signUp() is called for an existing confirmed user:- - If **Confirm email** is enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.- - If **Confirm email** is disabled, the error message, `User already registered` is returned.+ - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.+ - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.- To fetch the currently logged-in user, refer to [`getUser()`](/docs/reference/javascript/auth-getuser).examples:- id: sign-updiff --git a/apps/docs/spec/supabase_kt_v2.yml b/apps/docs/spec/supabase_kt_v2.ymlindex 82745e5a23d..dfd761dc4e2 100644--- a/apps/docs/spec/supabase_kt_v2.yml+++ b/apps/docs/spec/supabase_kt_v2.yml@@ -2429,8 +2429,8 @@ functions:- When the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration).- To learn how to handle OTP links & OAuth refer to [initializing](/docs/reference/kotlin/initializing)- If signUpWith() is called for an existing confirmed user:- - If **Confirm email** is enabled in [your project](https://supabase.com/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.- - If **Confirm email** is disabled, the error message, `User already registered` is returned.+ - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.+ - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.examples:- id: sign-up-emailname: Sign up with emaildiff --git a/apps/docs/spec/supabase_py_v2.yml b/apps/docs/spec/supabase_py_v2.ymlindex 0da348f884b..5bb793efb3f 100644--- a/apps/docs/spec/supabase_py_v2.yml+++ b/apps/docs/spec/supabase_py_v2.yml@@ -60,8 +60,8 @@ functions:- If **Confirm email** is disabled, both a `user` and a `session` are returned.- By default, when the user confirms their email address, they are redirected to the [`SITE_URL`](https://supabase.com/docs/reference/auth/config#site_url). You can modify your `SITE_URL` or add additional redirect URLs in [your project](https://supabase.com/dashboard/project/_/auth/url-configuration).- If sign_up() is called for an existing confirmed user:- - If **Confirm email** is enabled in [your project](https://supabase.com/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.- - If **Confirm email** is disabled, the error message, `User already registered` is returned.+ - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.+ - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.- To fetch the currently logged-in user, refer to [`getUser()`](/docs/reference/python/auth-getuser).examples:- id: signupdiff --git a/apps/docs/spec/supabase_swift_v2.yml b/apps/docs/spec/supabase_swift_v2.ymlindex 8fd5950d21a..586ceb850a0 100644--- a/apps/docs/spec/supabase_swift_v2.yml+++ b/apps/docs/spec/supabase_swift_v2.yml@@ -87,8 +87,8 @@ functions:- If **Confirm email** is disabled, both a `user` and a `session` are returned.- When the user confirms their email address, they are redirected to the [`SITE_URL`](/docs/reference/auth/config#site_url) by default. You can modify your `SITE_URL` or add additional redirect URLs in [your project](/dashboard/project/_/auth/url-configuration).- If signUp() is called for an existing confirmed user:- - If **Confirm email** is enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.- - If **Confirm email** is disabled, the error message, `User already registered` is returned.+ - When both **Confirm email** and **Confirm phone** (even when phone provider is disabled) are enabled in [your project](/dashboard/project/_/auth/providers), an obfuscated/fake user object is returned.+ - When either **Confirm email** or **Confirm phone** (even when phone provider is disabled) is disabled, the error message, `User already registered` is returned.- To fetch the currently logged-in user, refer to [`getUser()`](/docs/reference/swift/get-user).examples:- id: sign-up