Ir a la consola

firebase::auth::User

#include <user.h>

Firebase user account object.

Summary

This class allows you to manipulate the profile of a user, link to and unlink from authentication providers, and refresh authentication tokens.

Inheritance

Inherits from: firebase::auth::UserInfoInterface

Constructors and Destructors

~User()

Public functions

Delete()
Future< void >
Deletes the user account.
DeleteLastResult() const
Future< void >
Get results of the most recent call to Delete.
GetToken(bool force_refresh)
Future< std::string >
The Java Web Token (JWT) that can be used to identify the user to the backend.
GetTokenLastResult() const
Future< std::string >
Get results of the most recent call to GetToken.
LinkAndRetrieveDataWithCredential(const Credential & credential)
Links the user with the given 3rd party credentials.
LinkAndRetrieveDataWithCredentialLastResult() const
Get results of the most recent call to LinkAndRetrieveDataWithCredential.
LinkWithCredential(const Credential & credential)
Future< User * >
Convenience function for ReauthenticateAndRetrieveData that discards the returned AdditionalUserInfo in SignInResult.
LinkWithCredentialLastResult() const
Future< User * >
Get results of the most recent call to LinkWithCredential.
Reauthenticate(const Credential & credential)
Future< void >
Convenience function for ReauthenticateAndRetrieveData that discards the returned AdditionalUserInfo data.
ReauthenticateAndRetrieveData(const Credential & credential)
Reauthenticate using a credential.
ReauthenticateAndRetrieveDataLastResult() const
Get results of the most recent call to ReauthenticateAndRetrieveData.
ReauthenticateLastResult() const
Future< void >
Get results of the most recent call to Reauthenticate.
Reload()
Future< void >
Refreshes the data for this user.
ReloadLastResult() const
Future< void >
Get results of the most recent call to Reload.
SendEmailVerification()
Future< void >
Initiates email verification for the user.
SendEmailVerificationLastResult() const
Future< void >
Get results of the most recent call to SendEmailVerification.
Unlink(const char *provider)
Future< User * >
Unlinks the current user from the provider specified.
UnlinkLastResult() const
Future< User * >
Get results of the most recent call to Unlink.
UpdateEmail(const char *email)
Future< void >
Sets the email address for the user.
UpdateEmailLastResult() const
Future< void >
Get results of the most recent call to UpdateEmail.
UpdatePassword(const char *password)
Future< void >
Attempts to change the password for the current user.
UpdatePasswordLastResult() const
Future< void >
Get results of the most recent call to UpdatePassword.
UpdatePhoneNumberCredential(const Credential & credential)
Future< User * >
Updates the currently linked phone number on the user.
UpdatePhoneNumberCredentialLastResult() const
Future< User * >
Get results of the most recent call to UpdatePhoneNumberCredential.
UpdateUserProfile(const UserProfile & profile)
Future< void >
Updates a subset of user profile information.