Constructor

EmailAuthProvider

new EmailAuthProvider()

Email and password auth provider implementation.

To authenticate: firebase.auth.Auth#createUserWithEmailAndPassword and firebase.auth.Auth#signInWithEmailAndPassword.

Implements
firebase.auth.AuthProvider

Properties

static

string

This corresponds to the sign-in method identifier as returned in firebase.auth.Auth#fetchSignInMethodsForEmail.

EMAIL_PASSWORD_SIGN_IN_METHOD

static

string

This corresponds to the sign-in method identifier as returned in firebase.auth.Auth#fetchSignInMethodsForEmail.

PROVIDER_ID

static

string

providerId

string

Implements
firebase.auth.AuthProvider#providerId

Methods

credential

static

credential(email, password) returns firebase.auth.AuthCredential

Parameter

email

string

Email address.

password

string

User account password.

Returns

non-null firebase.auth.AuthCredential The auth provider credential.

Example

var cred = firebase.auth.EmailAuthProvider.credential(
    email,
    password
);
static

credentialWithLink(email, emailLink) returns firebase.auth.AuthCredential

Initialize an EmailAuthProvider credential using an email and an email link after a sign in with email link operation.

Parameter

email

string

Email address.

emailLink

string

Sign-in email link.

Returns

non-null firebase.auth.AuthCredential The auth provider credential.

Example

var cred = firebase.auth.EmailAuthProvider.credentialWithLink(
    email,
    emailLink
);