前往主控台

Email and password auth provider implementation.

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

Implements

Index

Properties

providerId

providerId: string

Static EMAIL_LINK_SIGN_IN_METHOD

EMAIL_LINK_SIGN_IN_METHOD: string

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

Static EMAIL_PASSWORD_SIGN_IN_METHOD

EMAIL_PASSWORD_SIGN_IN_METHOD: string

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

Static PROVIDER_ID

PROVIDER_ID: string

Methods

Static credential

  • credential(email: string, password: string): AuthCredential
  • example
    var cred = firebase.auth.EmailAuthProvider.credential(
        email,
        password
    );

    Parameters

    • email: string

      Email address.

    • password: string

      User account password.

    Returns AuthCredential

    The auth provider credential.

Static credentialWithLink

  • credentialWithLink(email: string, emailLink: string): AuthCredential
  • Initialize an EmailAuthProvider credential using an email and an email link after a sign in with email link operation.

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

    Parameters

    • email: string

      Email address.

    • emailLink: string

      Sign-in email link.

    Returns AuthCredential

    The auth provider credential.