firebase:: auth:: Credential
#include <credential.h>
Authentication credentials for an authentication provider.
Summary
An authentication provider is a service that allows you to authenticate a user. Firebase provides email/password authentication, but there are also external authentication providers such as Facebook.
Inheritance
Direct Known Subclasses:firebase::auth::PhoneAuthCredentialConstructors and Destructors | |
|---|---|
Credential() | |
Credential(constCredential & rhs)Copy constructor. | |
~Credential() |
Public functions | |
|---|---|
is_valid() const | boolGet whether this credential is valid. |
operator=(constCredential & rhs) | Copy aCredential. |
provider() const | std::stringGets the name of the Identification Provider (IDP) for the credential. |
Public functions
Credential
Credential()
is_valid
boolis_valid()const
Get whether this credential is valid.
A credential can be invalid in an error condition, e.g. empty username/password.
| Details | |
|---|---|
| Returns | True if the credential is valid, false otherwise. |
provider
std::stringprovider()const
Gets the name of the Identification Provider (IDP) for the credential.
~Credential
~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 2024-01-23 UTC.