FirebaseAdmin.Auth.UserMetadata

Contains additional metadata associated with a user account.

Summary

Constructors and Destructors

UserMetadata(long creationTimestamp, long lastSignInTimestamp, DateTime? lastRefreshTimestamp)
Initializes a new instance of the UserMetadata class with the specified creation and last sign-in timestamps.

Properties

CreationTimestamp
DateTime
Gets a timestamp representing the date and time that the account was created.
LastRefreshTimestamp
DateTime
Gets the time at which the user was last active (ID token refreshed), or null if the user was never active.
LastSignInTimestamp
DateTime
Gets a timestamp representing the last time that the user has signed in.

Properties

CreationTimestamp

DateTime CreationTimestamp

Gets a timestamp representing the date and time that the account was created.

If not available this property is null.

LastRefreshTimestamp

DateTime LastRefreshTimestamp

Gets the time at which the user was last active (ID token refreshed), or null if the user was never active.

LastSignInTimestamp

DateTime LastSignInTimestamp

Gets a timestamp representing the last time that the user has signed in.

If the user has never signed in this property is null.

Public functions

UserMetadata

 UserMetadata(
  long creationTimestamp,
  long lastSignInTimestamp,
  DateTime? lastRefreshTimestamp
)

Initializes a new instance of the UserMetadata class with the specified creation and last sign-in timestamps.

Details
Parameters
creationTimestamp
A timestamp representing the date and time that the user account was created.
lastSignInTimestamp
A timestamp representing the date and time that the user account was last signed-on to.
lastRefreshTimestamp
A timestamp representing the date and time that the user account was last refreshed.