From a2acd876226cd0261a032d0ec8403dd11db136f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allidjinou=20Mich=C3=A9e=20Josu=C3=A9?= Date: Tue, 2 Aug 2022 16:25:58 +0000 Subject: [PATCH] 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. --- web/spec/supabase.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml index d78f78c49f9..73251b4d93b 100644 --- a/web/spec/supabase.yml +++ b/web/spec/supabase.yml @@ -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', })