Stay organized with collections
Save and categorize content based on your preferences.
Properties
providerId
providerId: string
Static EMAIL_LINK_SIGN_IN_METHOD
EMAIL_LINK_SIGN_IN_METHOD: string
Static EMAIL_PASSWORD_SIGN_IN_METHOD
EMAIL_PASSWORD_SIGN_IN_METHOD: string
Static PROVIDER_ID
PROVIDER_ID: string
Methods
Static credentialWithLink
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- [auth](/docs/reference/js/v8/firebase.auth).\n- EmailAuthProvider \nEmail and password auth provider implementation.\n\nTo authenticate: [firebase.auth.Auth.createUserWithEmailAndPassword](/docs/reference/js/v8/firebase.auth.Auth#createuserwithemailandpassword)\nand [firebase.auth.Auth.signInWithEmailAndPassword](/docs/reference/js/v8/firebase.auth.Auth#signinwithemailandpassword).\n\nImplements\n\n- [AuthProvider](/docs/reference/js/v8/firebase.auth.AuthProvider)\n\nIndex\n\nProperties\n\n- [providerId](/docs/reference/js/v8/firebase.auth.EmailAuthProvider#providerid)\n- [EMAIL_LINK_SIGN_IN_METHOD](/docs/reference/js/v8/firebase.auth.EmailAuthProvider#email_link_sign_in_method)\n- [EMAIL_PASSWORD_SIGN_IN_METHOD](/docs/reference/js/v8/firebase.auth.EmailAuthProvider#email_password_sign_in_method)\n- [PROVIDER_ID](/docs/reference/js/v8/firebase.auth.EmailAuthProvider#provider_id)\n\nMethods\n\n- [credential](/docs/reference/js/v8/firebase.auth.EmailAuthProvider#credential)\n- [credentialWithLink](/docs/reference/js/v8/firebase.auth.EmailAuthProvider#credentialwithlink)\n\nProperties\n\nproviderId \nproviderId: string\n| Implementation of [AuthProvider](/docs/reference/js/v8/firebase.auth.AuthProvider).[providerId](/docs/reference/js/v8/firebase.auth.AuthProvider#providerid)\n| Inherited from [EmailAuthProvider](/docs/reference/js/v8/firebase.auth.EmailAuthProvider).[providerId](/docs/reference/js/v8/firebase.auth.EmailAuthProvider#providerid)\n\nStatic EMAIL_LINK_SIGN_IN_METHOD \nEMAIL_LINK_SIGN_IN_METHOD: string \nThis corresponds to the sign-in method identifier as returned in\n[firebase.auth.Auth.fetchSignInMethodsForEmail](/docs/reference/js/v8/firebase.auth.Auth#fetchsigninmethodsforemail).\n\nStatic EMAIL_PASSWORD_SIGN_IN_METHOD \nEMAIL_PASSWORD_SIGN_IN_METHOD: string \nThis corresponds to the sign-in method identifier as returned in\n[firebase.auth.Auth.fetchSignInMethodsForEmail](/docs/reference/js/v8/firebase.auth.Auth#fetchsigninmethodsforemail).\n\nStatic PROVIDER_ID \nPROVIDER_ID: string\n\nMethods\n\nStatic credential\n\n- credential ( email : string , password : string ) : [AuthCredential](/docs/reference/js/v8/firebase.auth.AuthCredential)\n-\n\n example\n :\n\n var cred = firebase.auth.EmailAuthProvider.credential(\n email,\n password\n );\n\n\n Parameters\n -\n\n email: string \n Email address.\n -\n\n password: string \n User account password.\n\n Returns [AuthCredential](/docs/reference/js/v8/firebase.auth.AuthCredential)\n\n The auth provider credential.\n\nStatic credentialWithLink\n\n- credentialWithLink ( email : string , emailLink : string ) : [AuthCredential](/docs/reference/js/v8/firebase.auth.AuthCredential)\n- Initialize an `EmailAuthProvider` credential using an email and an email link\n after a sign in with email link operation.\n\n example\n :\n\n var cred = firebase.auth.EmailAuthProvider.credentialWithLink(\n email,\n emailLink\n );\n\n\n Parameters\n -\n\n email: string \n Email address.\n -\n\n emailLink: string \n Sign-in email link.\n\n Returns [AuthCredential](/docs/reference/js/v8/firebase.auth.AuthCredential)\n\nThe auth provider credential."]]
Email and password auth provider implementation.
To authenticate: firebase.auth.Auth.createUserWithEmailAndPassword and firebase.auth.Auth.signInWithEmailAndPassword.