Skip to content

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

fix: password docs (#47561)

Vaibhav89bba9502863
diff --git a/apps/docs/content/guides/auth/passwords.mdx b/apps/docs/content/guides/auth/passwords.mdx
index 198c8e8f983..ad37b727915 100644
--- a/apps/docs/content/guides/auth/passwords.mdx
+++ b/apps/docs/content/guides/auth/passwords.mdx
@@ -1035,7 +1035,7 @@ final UserResponse res = await supabase.auth.updateUser(
#### Verifying the current password
-If your app requires users to confirm their current password before setting a new one, you can pass `currentPassword` (available in `supabase-js` v2.102.0+ and `supabase-kt` 3.5.0+):
+If your app requires users to confirm their current password before setting a new one, you can pass `current_password` (available in `supabase-js` v2.102.0+ and `supabase-kt` 3.5.0+):
<Tabs
scrollable
@@ -1049,7 +1049,7 @@ If your app requires users to confirm their current password before setting a ne
```js
await supabase.auth.updateUser({
password: 'new_password',
- currentPassword: 'old_password',
+ current_password: 'old_password',
})
```