The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update Auth update() and updateUser() docs
dannyknga1c91513629d
diff --git a/spec/supabase_js_v1_legacy.yml b/spec/supabase_js_v1_legacy.ymlindex c5358848c23..cfe850075d8 100644--- a/spec/supabase_js_v1_legacy.yml+++ b/spec/supabase_js_v1_legacy.yml@@ -329,27 +329,26 @@ pages:title: 'update()'$ref: '@supabase/gotrue-js.GoTrueClient.update'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:- - name: Update email for authenticated user.+ - name: Update the email for an authenticated userdescription: Sends a "Confirm Email Change" email to the new email address.isSpotlight: truejs: |```jsconst { user, error } = await supabase.auth.update({email: '[email protected]'})```- - name: Update password for authenticated user.+ - name: Update the password for an authenticated userisSpotlight: truejs: |```jsconst { user, error } = await supabase.auth.update({password: 'new password'})```- - name: Update a user's metadata.+ - name: Update the user's metadataisSpotlight: truejs: |```jsdiff --git a/spec/supabase_js_v2_legacy.yml b/spec/supabase_js_v2_legacy.ymlindex 0925a05d134..db33368134c 100644--- a/spec/supabase_js_v2_legacy.yml+++ b/spec/supabase_js_v2_legacy.yml@@ -288,23 +288,23 @@ pages:$ref: '@supabase/gotrue-js.GoTrueClient.updateUser'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:- - name: Update the email of an authenticated user+ - name: Update the email for an authenticated userdescription: Sends a "Confirm Email Change" email to the new email address.isSpotlight: falsejs: |```jsconst { data, error } = await supabase.auth.updateUser({email: '[email protected]'})```- - name: Update the password of an authenticated user+ - name: Update the password for an authenticated userisSpotlight: falsejs: |```jsconst { data, error } = await supabase.auth.updateUser({password: 'new password'})```- - name: Update the user's metadata.+ - name: Update the user's metadataisSpotlight: truejs: |```js