Once users are registered with your application (after completing the user verification process if required) they will be able to log in with their username, phone number or email address.
Logging in with a password
Here is the sample code for authenticating a user.
Call the logIn method with a combination of username (or phone number or email address) and password.
When you want to authenticate a user with a local phone number, please call the logInWithLocalPhone method instead:
Investigating failed logins
A BadRequestException will be thrown if the specified user does not exist or if the password is invalid. A BadRequestException is also thrown if the specified user is currently disabled by the app administrator. See Types of exceptions to learn more the exception handling.
For security reasons, the SDK cannot determine which is the cause of the exception. On the other hand, the app administrator can identify the error cause by checking the developer log.