UserMetadata class
Stay organized with collections
Save and categorize content based on your preferences.
Represents a user's metadata.
Signature:
export declare class UserMetadata
Properties
Property |
Modifiers |
Type |
Description |
creationTime |
|
string |
The date the user was created, formatted as a UTC string. |
lastRefreshTime |
|
string | null |
The time at which the user was last active (ID token refreshed), formatted as a UTC Date string (eg 'Sat, 03 Feb 2001 04:05:06 GMT'). Returns null if the user was never active. |
lastSignInTime |
|
string |
The date the user last signed in, formatted as a UTC string. |
Methods
Method |
Modifiers |
Description |
toJSON() |
|
Returns a JSON-serializable representation of this object. |
The date the user was created, formatted as a UTC string.
Signature:
readonly creationTime: string;
The time at which the user was last active (ID token refreshed), formatted as a UTC Date string (eg 'Sat, 03 Feb 2001 04:05:06 GMT'). Returns null if the user was never active.
Signature:
readonly lastRefreshTime?: string | null;
The date the user last signed in, formatted as a UTC string.
Signature:
readonly lastSignInTime: string;
Returns a JSON-serializable representation of this object.
Signature:
toJSON(): object;
Returns:
object
A JSON-serializable representation of this object.
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-07-29 UTC.
[null,null,["Last updated 2022-07-29 UTC."],[],[],null,["# UserMetadata class\n\nRepresents a user's metadata.\n\n**Signature:** \n\n export declare class UserMetadata \n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|--------------------------------------------------------------------------------------|-----------|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [creationTime](./firebase-admin.auth.usermetadata.md#usermetadatacreationtime) | | string | The date the user was created, formatted as a UTC string. |\n| [lastRefreshTime](./firebase-admin.auth.usermetadata.md#usermetadatalastrefreshtime) | | string \\| null | The time at which the user was last active (ID token refreshed), formatted as a UTC Date string (eg 'Sat, 03 Feb 2001 04:05:06 GMT'). Returns null if the user was never active. |\n| [lastSignInTime](./firebase-admin.auth.usermetadata.md#usermetadatalastsignintime) | | string | The date the user last signed in, formatted as a UTC string. |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|----------------------------------------------------------------------|-----------|------------------------------------------------------------|\n| [toJSON()](./firebase-admin.auth.usermetadata.md#usermetadatatojson) | | Returns a JSON-serializable representation of this object. |\n\nUserMetadata.creationTime\n-------------------------\n\nThe date the user was created, formatted as a UTC string.\n\n**Signature:** \n\n readonly creationTime: string;\n\nUserMetadata.lastRefreshTime\n----------------------------\n\nThe time at which the user was last active (ID token refreshed), formatted as a UTC Date string (eg 'Sat, 03 Feb 2001 04:05:06 GMT'). Returns null if the user was never active.\n\n**Signature:** \n\n readonly lastRefreshTime?: string | null;\n\nUserMetadata.lastSignInTime\n---------------------------\n\nThe date the user last signed in, formatted as a UTC string.\n\n**Signature:** \n\n readonly lastSignInTime: string;\n\nUserMetadata.toJSON()\n---------------------\n\nReturns a JSON-serializable representation of this object.\n\n**Signature:** \n\n toJSON(): object;\n\n**Returns:**\n\nobject\n\nA JSON-serializable representation of this object."]]