signUpWithPhone method
Creates a new user using the mobile phone number and password authentication method in the database.
If phone number confirmation is enabled in your app authentication
settings then a confirmation code SMS will be sent to the phone and this
method will return the user data and a null
session. Until the user
validates this code by calling verifyPhone, the phone number
will not be verified. If a user tries to signIn to an account where
phone number has not been confirmed yet, an error message will be
returned asking for phone number verification.
If phone number confirmation is disabled, a newly created session
object and the user data will be returned.
phone
Unique phone number of the user. If there is
already a user with the provided phone number then an error is raised.
password
Password of the user, should be at least
6 characters long
nameOrUser
Name of user or additional user data associated with the
user that is being created in the database. Besides the name of the user,
you can pass additional user fields with values
(except phone and password) to be created in the database.
Implementation
Future<UserSessionResult> signUpWithPhone(String phone, String password,
[dynamic nameOrUser]) =>
_signUp('signup-phone', 'phone', phone, password, nameOrUser);