Skip to content

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

Update signIn methods for phone auth guides

dannyknga6e6c97c0455
diff --git a/apps/reference/docs/guides/auth/auth-messagebird.mdx b/apps/reference/docs/guides/auth/auth-messagebird.mdx
index b67591f0b73..9c7c2bb2756 100644
--- a/apps/reference/docs/guides/auth/auth-messagebird.mdx
+++ b/apps/reference/docs/guides/auth/auth-messagebird.mdx
@@ -172,7 +172,7 @@ values={[
<TabItem value="JS">
```js
-let { user, error } = await supabase.auth.signIn({
+let { user, error } = await supabase.auth.signInWithPassword({
phone: '+13334445555',
password: 'some-password',
})
@@ -209,7 +209,7 @@ values={[
<TabItem value="JS">
```js
-let { user, error } = await supabase.auth.signIn({
+let { user, error } = await supabase.auth.signInWithOtp({
phone: '+13334445555',
})
```
diff --git a/apps/reference/docs/guides/auth/auth-twilio.mdx b/apps/reference/docs/guides/auth/auth-twilio.mdx
index 685f6554746..96abd4aa723 100644
--- a/apps/reference/docs/guides/auth/auth-twilio.mdx
+++ b/apps/reference/docs/guides/auth/auth-twilio.mdx
@@ -189,7 +189,7 @@ values={[
<TabItem value="JS">
```js
-let { user, error } = await supabase.auth.signIn({
+let { user, error } = await supabase.auth.signInWithPassword({
phone: '+13334445555',
password: 'some-password',
})
@@ -226,7 +226,7 @@ values={[
<TabItem value="JS">
```js
-let { user, error } = await supabase.auth.signIn({
+let { user, error } = await supabase.auth.signInWithOtp({
phone: '+13334445555',
})
```
diff --git a/apps/reference/docs/guides/auth/auth-vonage.mdx b/apps/reference/docs/guides/auth/auth-vonage.mdx
index d1a71db6c2b..10fa9378c0c 100644
--- a/apps/reference/docs/guides/auth/auth-vonage.mdx
+++ b/apps/reference/docs/guides/auth/auth-vonage.mdx
@@ -163,7 +163,7 @@ values={[
<TabItem value="JS">
```js
-let { user, error } = await supabase.auth.signIn({
+let { user, error } = await supabase.auth.signInWithPassword({
phone: '491512223334444',
password: 'some-password',
})
@@ -200,7 +200,7 @@ values={[
<TabItem value="JS">
```js
-let { user, error } = await supabase.auth.signIn({
+let { user, error } = await supabase.auth.signInWithOtp({
phone: '491512223334444',
})
```