auth.UserRecordMetadata class
Stay organized with collections
Save and categorize content based on your preferences.
Helper class to create the user metadata in a UserRecord
object.
Signature:
export declare class UserRecordMetadata implements auth.UserMetadata
Implements: auth.UserMetadata
Constructors
Properties
Methods
Method |
Modifiers |
Description |
toJSON() |
|
Returns a plain JavaScript object with the properties of UserRecordMetadata. |
Constructs a new instance of the UserRecordMetadata
class
Signature:
constructor(creationTime: string, lastSignInTime: string);
Parameters
Parameter |
Type |
Description |
creationTime |
string |
|
lastSignInTime |
string |
|
Signature:
creationTime: string;
Signature:
lastSignInTime: string;
Returns a plain JavaScript object with the properties of UserRecordMetadata.
Signature:
toJSON(): AuthUserMetadata;
Returns:
AuthUserMetadata
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 2023-11-21 UTC.
[null,null,["Last updated 2023-11-21 UTC."],[],[],null,["# auth.UserRecordMetadata class\n\nHelper class to create the user metadata in a `UserRecord` object.\n\n**Signature:** \n\n export declare class UserRecordMetadata implements auth.UserMetadata \n\n**Implements:** auth.UserMetadata\n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|----------------------------------------------------------------------------------------------------------------------------------|-----------|-------------------------------------------------------------|\n| [(constructor)(creationTime, lastSignInTime)](./firebase-functions.auth.userrecordmetadata.md#authuserrecordmetadataconstructor) | | Constructs a new instance of the `UserRecordMetadata` class |\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|--------------------------------------------------------------------------------------------------------|-----------|--------|-------------|\n| [creationTime](./firebase-functions.auth.userrecordmetadata.md#authuserrecordmetadatacreationtime) | | string | |\n| [lastSignInTime](./firebase-functions.auth.userrecordmetadata.md#authuserrecordmetadatalastsignintime) | | string | |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|------------------------------------------------------------------------------------------|-----------|------------------------------------------------------------------------------|\n| [toJSON()](./firebase-functions.auth.userrecordmetadata.md#authuserrecordmetadatatojson) | | Returns a plain JavaScript object with the properties of UserRecordMetadata. |\n\nauth.UserRecordMetadata.(constructor)\n-------------------------------------\n\nConstructs a new instance of the `UserRecordMetadata` class\n\n**Signature:** \n\n constructor(creationTime: string, lastSignInTime: string);\n\n### Parameters\n\n| Parameter | Type | Description |\n|----------------|--------|-------------|\n| creationTime | string | |\n| lastSignInTime | string | |\n\nauth.UserRecordMetadata.creationTime\n------------------------------------\n\n**Signature:** \n\n creationTime: string;\n\nauth.UserRecordMetadata.lastSignInTime\n--------------------------------------\n\n**Signature:** \n\n lastSignInTime: string;\n\nauth.UserRecordMetadata.toJSON()\n--------------------------------\n\nReturns a plain JavaScript object with the properties of UserRecordMetadata.\n\n**Signature:** \n\n toJSON(): AuthUserMetadata;\n\n**Returns:**\n\nAuthUserMetadata"]]