Email and password auth provider implementation.

To authenticate:firebase.auth.Auth.createUserWithEmailAndPasswordandfirebase.auth.Auth.signInWithEmailAndPassword.

Implements

Index

Properties

providerId

providerId:string

Implementation ofAuthProvider.providerId

Inherited fromEmailAuthProvider.providerId

Static EMAIL_LINK_SIGN_IN_METHOD

EMAIL_LINK_SIGN_IN_METHOD:string

This corresponds to the sign-in method identifier as returned infirebase.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 infirebase.auth.Auth.fetchSignInMethodsForEmail.

Static PROVIDER_ID

PROVIDER_ID:string

Methods

Static credential

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

    Parameters

    • email:string

      Email address.

    • password:string

      User account password.

    ReturnsAuthCredential

    The auth provider credential.

Static credentialWithLink

  • credentialWithLink(emailstring, emailLinkstring):AuthCredential
  • Initialize anEmailAuthProvider credential using an email and an email linkafter 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.

    ReturnsAuthCredential

    The auth provider credential.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-27 UTC.