MultiFactorInfo class

Interface representing the common properties of a user-enrolled second factor.

Signature:

exportdeclareabstractclassMultiFactorInfo

Properties

PropertyModifiersTypeDescription
displayNamestringThe optional display name of the enrolled second factor.
enrollmentTimestringThe optional date the second factor was enrolled, formatted as a UTC string.
factorIdstringThe type identifier of the second factor. For SMS second factors, this isphone. For TOTP second factors, this istotp.
uidstringThe ID of the enrolled second factor. This ID is unique to the user.

Methods

MethodModifiersDescription
toJSON()Returns a JSON-serializable representation of this object.

MultiFactorInfo.displayName

The optional display name of the enrolled second factor.

Signature:

readonlydisplayName?:string;

MultiFactorInfo.enrollmentTime

The optional date the second factor was enrolled, formatted as a UTC string.

Signature:

readonlyenrollmentTime?:string;

MultiFactorInfo.factorId

The type identifier of the second factor. For SMS second factors, this isphone. For TOTP second factors, this istotp.

Signature:

readonlyfactorId:string;

MultiFactorInfo.uid

The ID of the enrolled second factor. This ID is unique to the user.

Signature:

readonlyuid:string;

MultiFactorInfo.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 2023-07-12 UTC.