Ir a la consola

Firebase.Auth.FirebaseUser

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.IUserInfo, SystemIDisposable

Properties

DisplayName
string
Gets the display name associated with the user, if any.
Email
string
Gets email associated with the user, if any.
IsAnonymous
bool
True if user signed in anonymously.
IsEmailVerified
bool
True if the email address associated with this user has been verified.
Metadata
PhoneNumber
string
PhotoUrl
System.Uri
The photo url associated with the user, if any.
ProviderData
global::System.Collections.Generic.IEnumerable< IUserInfo >
Gets the third party profile data associated with this user returned by the authentication server, if any.
ProviderId
string
Gets the provider ID for the user (For example, "Facebook").
UserId
string
Gets the unique Firebase user ID for the user.

Public functions

DeleteAsync()
Deletes the user account.
Dispose()
void
LinkAndRetrieveDataWithCredentialAsync(Credential credential)
Links the user with the given 3rd party credentials.
LinkWithCredentialAsync(Credential credential)
Convenience function for ReauthenticateAndRetrieveData that discards the returned AdditionalUserInfo in SignInResult.
ReauthenticateAndRetrieveDataAsync(Credential credential)
Reauthenticate using a credential.
ReauthenticateAsync(Credential credential)
Convenience function for ReauthenticateAndRetrieveData that discards the returned AdditionalUserInfo data.
ReloadAsync()
Refreshes the data for this user.
SendEmailVerificationAsync()
Initiates email verification for the user.
TokenAsync(bool forceRefresh)
A "thread safer" version of GetToken.
UnlinkAsync(string provider)
Unlinks the current user from the provider specified.
UpdateEmailAsync(string email)
Sets the email address for the user.
UpdatePasswordAsync(string password)
Attempts to change the password for the current user.
UpdatePhoneNumberCredentialAsync(Credential credential)
Updates the currently linked phone number on the user.
UpdateUserProfileAsync(UserProfile profile)
Updates a subset of user profile information.

Properties

DisplayName

string DisplayName

Gets the display name associated with the user, if any.

Email

string Email

Gets email associated with the user, if any.

IsAnonymous

bool IsAnonymous

True if user signed in anonymously.

IsEmailVerified

bool IsEmailVerified

True if the email address associated with this user has been verified.

Metadata

UserMetadata Metadata

PhoneNumber

string PhoneNumber

PhotoUrl

System.Uri PhotoUrl

The photo url associated with the user, if any.

ProviderData

global::System.Collections.Generic.IEnumerable< IUserInfo > ProviderData

Gets the third party profile data associated with this user returned by the authentication server, if any.

ProviderId

string ProviderId

Gets the provider ID for the user (For example, "Facebook").

UserId

string UserId

Gets the unique Firebase user ID for the user.

Note:The user's ID, unique to the Firebase project. Do NOT use this value to authenticate with your backend server, if you have one. Use User.Token instead.

Public functions

DeleteAsync

System.Threading.Tasks.Task DeleteAsync()

Deletes the user account.

Dispose

void Dispose()

LinkAndRetrieveDataWithCredentialAsync

System.Threading.Tasks.Task< SignInResult > LinkAndRetrieveDataWithCredentialAsync(
  Credential credential
)</