signInWithEmail method
Log in an existing user using email and password. In order to use email and password based log in, the authentication provider needs to be Altogic, meaning a user with email and password credentials exists in the app database.
If email confirmation is enabled in your app authentication settings and if the email of the user has not been verified yet, this method will return an error message.
You cannot use this method to log in a user who has signed up with an Oauth2 provider such as Google, Facebook, Twitter, Apple etc.
email
Email of the user
password
Password of the user
Implementation
Future<UserSessionResult> signInWithEmail(String email, String password) =>
_signIn('signin-email', 'email', email, password);