The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Generate reference docs
dannykng4d95ffe8e1a3
diff --git a/apps/reference/_supabase_js/generated/auth-updateuser.mdx b/apps/reference/_supabase_js/generated/auth-updateuser.mdxindex 1a5021bc07e..449d21f0bda 100644--- a/apps/reference/_supabase_js/generated/auth-updateuser.mdx+++ b/apps/reference/_supabase_js/generated/auth-updateuser.mdx@@ -132,12 +132,12 @@ The user's phone.## Notes- In order to use the `updateUser()` method, the user needs to be signed in first.-- Email updates will send an email to both the user's current and new email with a confirmation link by default.- To only send a single confirmation link to the user's new email, you can toggle the "Secure email change" setting in [your project](https://app.supabase.com/project/_/auth/settings).+- By Default, email updates sends a confirmation link to both the user's current and new email.+ To only send a confirmation link to the user's new email, disable **Secure email change** in your project's [email auth provider settings](https://app.supabase.com/project/_/auth/settings).## Examples-### Update the email of an authenticated user+### Update the email for an authenticated userSends a "Confirm Email Change" email to the new email address.@@ -147,7 +147,7 @@ const { data, error } = await supabase.auth.updateUser({})```-### Update the password of an authenticated user+### Update the password for an authenticated user```jsconst { data, error } = await supabase.auth.updateUser({@@ -155,7 +155,7 @@ const { data, error } = await supabase.auth.updateUser({})```-### Update the user's metadata.+### Update the user's metadata```jsconst { data, error } = await supabase.auth.updateUser({diff --git a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-update.mdx b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-update.mdxindex c864b92e637..f330fc9600d 100644--- a/apps/reference/_supabase_js_versioned_docs/version-v1/auth-update.mdx+++ b/apps/reference/_supabase_js_versioned_docs/version-v1/auth-update.mdx@@ -42,15 +42,15 @@ No description provided.## Notes-User email: Email updates will send an email to both the user's current and new email with a confirmation link by default.-To toggle this behavior off and only send a single confirmation link to the new email, toggle "Double confirm email changes" under "Authentication" -> "Settings" off.+User email: By Default, email updates sends a confirmation link to both the user's current and new email.+To only send a confirmation link to the user's new email, disable **Secure email change** in your project's [email auth provider settings](https://app.supabase.com/project/_/auth/settings).-User metadata: It's generally better to store user data in a table inside your public schema (i.e. `public.users`).+User metadata: It's generally better to store user data in a table within your public schema (i.e., `public.users`).Use the `update()` method if you have data which rarely changes or is specific only to the logged in user.## Examples-### Update email for authenticated user.+### Update the email for an authenticated userSends a "Confirm Email Change" email to the new email address.@@ -58,13 +58,13 @@ Sends a "Confirm Email Change" email to the new email address.const { user, error } = await supabase.auth.update({ email: '[email protected]' })```-### Update password for authenticated user.+### Update the password for an authenticated user```jsconst { user, error } = await supabase.auth.update({ password: 'new password' })```-### Update a user's metadata.+### Update the user's metadata```jsconst { user, error } = await supabase.auth.update({