UserMetadata class Stay organized with collections Save and categorize content based on your preferences.
Represents a user's metadata.
Signature:
exportdeclareclassUserMetadataProperties
| 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. |
UserMetadata.creationTime
The date the user was created, formatted as a UTC string.
Signature:
readonlycreationTime:string;UserMetadata.lastRefreshTime
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:
readonlylastRefreshTime?:string|null;UserMetadata.lastSignInTime
The date the user last signed in, formatted as a UTC string.
Signature:
readonlylastSignInTime:string;UserMetadata.toJSON()
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 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-07-29 UTC.