Skip to content

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

Merge pull request #8589 from Dhruv-Gajjar/dg-signInWithOtp

dngd4f8c3307384
diff --cc apps/reference/_supabase_js/generated/auth-signinwithotp.mdx
index 26531fedd98,f28e36b293b..bcdfeed047a
--- a/apps/reference/_supabase_js/generated/auth-signinwithotp.mdx
+++ b/apps/reference/_supabase_js/generated/auth-signinwithotp.mdx
@@@ -310,12 -307,12 +310,12 @@@ const { data, error } = await supabase.
})
```
-### Sign in with sms otp.
+### Sign in with SMS OTP.
-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.
+The user will be sent a SMS which contains a OTP. By default, a given user can only request a OTP once every 60 seconds.
```js
- const { data, error } = await supabase.auth.signInWithPassword({
+ const { data, error } = await supabase.auth.signInWithOtp({
phone: '+13334445555',
})
```
diff --cc spec/supabase_js_v2_legacy.yml
index 992cf28e031,20847e5cca2..67b89d38ffe
--- a/spec/supabase_js_v2_legacy.yml
+++ b/spec/supabase_js_v2_legacy.yml
@@@ -170,12 -173,12 +170,12 @@@ pages
})
```
- - name: Sign in with sms otp.
+ - name: Sign in with SMS OTP.
isSpotlight: false
- 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.
+ description: The user will be sent a SMS which contains a OTP. By default, a given user can only request a OTP once every 60 seconds.
js: |
```js
- const { data, error } = await supabase.auth.signInWithPassword({
+ const { data, error } = await supabase.auth.signInWithOtp({
phone: '+13334445555',
})
```