UserMetadata class

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.