Stay organized with collections
Save and categorize content based on your preferences.
firebase::auth::EmailAuthProvider
#include <credential.h>
Use email and password to authenticate.
Summary
Allows developers to use the email and password credentials as they could other auth providers. For example, this can be used to change passwords, log in, etc.
Public static attributes
|
kProviderId
|
const char *const
The string used to identify this provider.
|
Public static functions
|
GetCredential(const char *email, const char *password)
|
Generate a credential from the given email and password.
|
Public static attributes
kProviderId
const char *const kProviderId
The string used to identify this provider.
Public static functions
GetCredential
Credential GetCredential(
const char *email,
const char *password
)
Generate a credential from the given email and password.
Details |
Parameters |
email
|
E-mail to generate the credential from.
|
password
|
Password to use for the new credential.
|
|
Returns
|
|
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 2024-01-23 UTC.
[null,null,["Last updated 2024-01-23 UTC."],[],[],null,["# firebase::auth::EmailAuthProvider Class Reference\n\nfirebase::auth::EmailAuthProvider\n=================================\n\n\n`#include \u003ccredential.h\u003e`\n\nUse email and password to authenticate.\n\nSummary\n-------\n\nAllows developers to use the email and password credentials as they could other auth providers. For example, this can be used to change passwords, log in, etc.\n\n| ### Public static attributes ||\n|--------------------------------------------------------------------------------------------------|----------------------------------------------------------------|\n| [kProviderId](#classfirebase_1_1auth_1_1_email_auth_provider_1ae0e30d0da0a4bf9059e6d3c277574f41) | `const char *const` The string used to identify this provider. |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetCredential](#classfirebase_1_1auth_1_1_email_auth_provider_1a7d86709d38b24e4923024e243d112aaa)`(const char *email, const char *password)` | [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential) Generate a credential from the given email and password. |\n\nPublic static attributes\n------------------------\n\n### kProviderId\n\n```c++\nconst char *const kProviderId\n``` \nThe string used to identify this provider.\n\nPublic static functions\n-----------------------\n\n### GetCredential\n\n```c++\nCredential GetCredential(\n const char *email,\n const char *password\n)\n``` \nGenerate a credential from the given email and password.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------|-----------------------------------------| | `email` | E-mail to generate the credential from. | | `password` | Password to use for the new credential. | |\n| **Returns** | New [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential). |"]]