signInWithPassword method
Signs into firebase with an email and a password.
This logs into an exsiting account and returns it's credentials as
FirebaseAccount if the request succeeds, or throws an AuthError
if it
fails.
If autoRefresh
is enabled (the default), the created accounts
FirebaseAccount.autoRefresh is set to true as well, wich will start an
automatic token refresh in the background, as soon as the current token
comes close to expiring. See FirebaseAccount.autoRefresh for more
details.
Note: To create a new account, use signUpWithPassword().
Implementation
Future<FirebaseAccount> signInWithPassword(
String email,
String password, {
bool autoRefresh = true,
}) async =>
FirebaseAccount.apiCreate(
api,
await api.signInWithPassword(
PasswordSignInRequest(
email: email,
password: password,
),
),
autoRefresh: autoRefresh,
locale: locale,
);