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(const Credential & rhs)
Copy constructor.
~Credential()

Public functions

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

Public functions

Credential

 Credential()

Credential

 Credential(
  const Credential & rhs
)

Copy constructor.

is_valid

bool is_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=(
  const Credential & rhs
)

Copy a Credential.

provider

std::string provider() const 

Gets the name of the Identification Provider (IDP) for the credential.

~Credential

 ~Credential()