signInWithPhone method
Log in an existing user using phone number and password. In order to use phone and password based log in, the authentication provider needs to be Altogic, meaning a user with phone and password credentials exists in the app database.
If phone number confirmation is enabled in your app authentication settings and if the phone of the user has not been verified yet, this method will return an error message.
phone
Phone of the user
password
Password of the user
Implementation
Future<UserSessionResult> signInWithPhone(String phone, String password) =>
_signIn('signin-phone', 'phone', phone, password);