Skip to content

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

docs: update signinWithOtp docs

Dhruv-Gajjar215bac932814
diff --git a/spec/supabase_js_v2_legacy.yml b/spec/supabase_js_v2_legacy.yml
index 52d60472051..20847e5cca2 100644
--- a/spec/supabase_js_v2_legacy.yml
+++ b/spec/supabase_js_v2_legacy.yml
@@ -178,7 +178,7 @@ pages:
description: The user will be sent an otp to their phone number. By default, a given user can only request an otp once every 60 seconds.
js: |
```js
- const { data, error } = await supabase.auth.signInWithPassword({
+ const { data, error } = await supabase.auth.signInWithOtp({
phone: '+13334445555',
})
```