Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs(gotrue-js): adding email update example. This addresses issue 1845 in supabase/supabase

pip59f3d20830fc
diff --git a/web/spec/gotrue.yml b/web/spec/gotrue.yml
index 5f6e8e96b3f..0331fa16f59 100644
--- a/web/spec/gotrue.yml
+++ b/web/spec/gotrue.yml
@@ -173,6 +173,18 @@ pages:
```py
# Not yet implemented
```
+ - name: Update a user's email address.
+ isSpotlight: true
+ js: |
+ ```js
+ const { user, error } = await auth.update({
+ }) // Sends a "Confirm Email Change" email to the new email address
+ ```
+ py: |
+ ```py
+ # Not yet implemented
+ ```
onAuthStateChange:
$ref: '"GoTrueClient".GoTrueClient.onAuthStateChange'