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::PhoneAuthCredential

Constructors and Destructors

Credential()
Credential(constCredential & rhs)
Copy constructor.
~Credential()

Public functions

is_valid() const
bool
Get whether this credential is valid.
operator=(constCredential & rhs)
Copy aCredential.
provider() const
std::string
Gets the name of the Identification Provider (IDP) for the credential.

Public functions

Credential

Credential()

Credential

Credential(constCredential&rhs)

Copy constructor.

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.

operator=

Credential&operator=(constCredential&rhs)

Copy aCredential.

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.