Update signUp with phone

Register user with phone using `signIn` results in an `Invalid Credentials` error. Update the documentation to make use of the `signUp` option when registering user with their phone number.
This commit is contained in:
Allidjinou Michée Josué authored and GitHub committed 2022-08-02 16:25:58 +00:00
1 parent 0df85f6ccb
commit a2acd87622
1 file changed
+1 -1
+1 -1
View File
@@ -282,7 +282,7 @@ pages:
Supabase supports Phone Auth. After a user has verified their number, they can use the [`signIn()`](/docs/reference/javascript/auth-signin#sign-in-using-phone) method.
js: |
```js
const { user, session, error } = await supabase.auth.signIn({
const { user, session, error } = await supabase.auth.signUp({
phone: '+13334445555',
password: 'some-password',
})