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 theUserMetadata 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), ornull 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 isnull.

LastRefreshTimestamp

DateTime LastRefreshTimestamp

Gets the time at which the user was last active (ID token refreshed), ornull 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 isnull.

Public functions

UserMetadata

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

Initializes a new instance of theUserMetadata 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.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-03-24 UTC.