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.

Constructors and Destructors

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

Public attributes

impl_
void *
Platform-specific implementation.

Public functions

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

Public attributes

impl_

void * impl_

Platform-specific implementation.

For example, FIRAuthCredential* on iOS.

Public functions

Credential

 Credential(
  const Credential & rhs
)

Copy constructor.

Provider

FIREBASE_DEPRECATED std::string Provider() const 

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

Deprecated. Renamed to provider().

is_valid

bool is_valid() const 

Get whether this credential iss 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()

Send feedback about...

Need help? Visit our support page.