Email and password auth provider implementation.
To authenticate:firebase.auth.Auth.createUserWithEmailAndPasswordandfirebase.auth.Auth.signInWithEmailAndPassword.
Implements
Index
Properties
providerId
Implementation ofAuthProvider.providerId
Inherited fromEmailAuthProvider.providerId
Static EMAIL_LINK_SIGN_IN_METHOD
This corresponds to the sign-in method identifier as returned infirebase.auth.Auth.fetchSignInMethodsForEmail.
Static EMAIL_PASSWORD_SIGN_IN_METHOD
This corresponds to the sign-in method identifier as returned infirebase.auth.Auth.fetchSignInMethodsForEmail.
Static PROVIDER_ID
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.
ReturnsAuthCredential
The auth provider credential.
Static credentialWithLink
- credential
With Link(email: string, emailLink: string):AuthCredential Initialize an
EmailAuthProvidercredential 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.