Stay organized with collections
Save and categorize content based on your preferences.
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
Public functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-03-24 UTC.
[null,null,["Last updated 2022-03-24 UTC."],[],[],null,["# FirebaseAdmin.Auth.UserMetadata Class Reference\n\nFirebaseAdmin.Auth.UserMetadata\n===============================\n\nContains additional metadata associated with a user account.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [UserMetadata](#class_firebase_admin_1_1_auth_1_1_user_metadata_1ac72ef6530b31155da8f8b42299df5c82)`(long creationTimestamp, long lastSignInTimestamp, DateTime? lastRefreshTimestamp)` Initializes a new instance of the [UserMetadata](/docs/reference/admin/dotnet/class/firebase-admin/auth/user-metadata#class_firebase_admin_1_1_auth_1_1_user_metadata) class with the specified creation and last sign-in timestamps. ||\n\n| ### Properties ||\n|-------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [CreationTimestamp](#class_firebase_admin_1_1_auth_1_1_user_metadata_1a530791c3361ebe07d81f963877a119f2) | `DateTime` Gets a timestamp representing the date and time that the account was created. |\n| [LastRefreshTimestamp](#class_firebase_admin_1_1_auth_1_1_user_metadata_1a91da5fa7a444109377251bb5e3a2b806) | `DateTime` Gets the time at which the user was last active (ID token refreshed), or `null` if the user was never active. |\n| [LastSignInTimestamp](#class_firebase_admin_1_1_auth_1_1_user_metadata_1afbb2d934af2fcd325bab4d31b8770611) | `DateTime` Gets a timestamp representing the last time that the user has signed in. |\n\nProperties\n----------\n\n### CreationTimestamp\n\n```text\nDateTime CreationTimestamp\n``` \nGets a timestamp representing the date and time that the account was created.\n\nIf not available this property is `null`. \n\n### LastRefreshTimestamp\n\n```text\nDateTime LastRefreshTimestamp\n``` \nGets the time at which the user was last active (ID token refreshed), or `null` if the user was never active. \n\n### LastSignInTimestamp\n\n```text\nDateTime LastSignInTimestamp\n``` \nGets a timestamp representing the last time that the user has signed in.\n\nIf the user has never signed in this property is `null`.\n\nPublic functions\n----------------\n\n### UserMetadata\n\n```text\n UserMetadata(\n long creationTimestamp,\n long lastSignInTimestamp,\n DateTime? lastRefreshTimestamp\n)\n``` \nInitializes a new instance of the [UserMetadata](/docs/reference/admin/dotnet/class/firebase-admin/auth/user-metadata#class_firebase_admin_1_1_auth_1_1_user_metadata) class with the specified creation and last sign-in timestamps.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 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. | |"]]