# MultiFactorInfo class

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

**Signature:**

```typescript
export declare abstract class MultiFactorInfo
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [displayName](/content/docs/reference/admin/node/firebase-admin.auth.multifactorinfo.md#multifactorinfodisplayname/index.html) |  | string | The optional display name of the enrolled second factor. |
| [enrollmentTime](/content/docs/reference/admin/node/firebase-admin.auth.multifactorinfo.md#multifactorinfoenrollmenttime/index.html) |  | string | The optional date the second factor was enrolled, formatted as a UTC string. |
| [factorId](/content/docs/reference/admin/node/firebase-admin.auth.multifactorinfo.md#multifactorinfofactorid/index.html) |  | string | The type identifier of the second factor. For SMS second factors, this is `phone`. For TOTP second factors, this is `totp`. |
| [uid](/content/docs/reference/admin/node/firebase-admin.auth.multifactorinfo.md#multifactorinfouid/index.html) |  | string | The ID of the enrolled second factor. This ID is unique to the user. |

## Methods

| Method | Modifiers | Description |
| --- | --- | --- |
| [toJSON()](/content/docs/reference/admin/node/firebase-admin.auth.multifactorinfo.md#multifactorinfotojson/index.html) |  | Returns a JSON-serializable representation of this object. |

## MultiFactorInfo.displayName

The optional display name of the enrolled second factor.

**Signature:**

```typescript
readonly displayName?: string;
```

## MultiFactorInfo.enrollmentTime

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

**Signature:**

```typescript
readonly enrollmentTime?: string;
```

## MultiFactorInfo.factorId

The type identifier of the second factor. For SMS second factors, this is `phone`. For TOTP second factors, this is `totp`.

**Signature:**

```typescript
readonly factorId: string;
```

## MultiFactorInfo.uid

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

**Signature:**

```typescript
readonly uid: string;
```

## MultiFactorInfo.toJSON()

Returns a JSON-serializable representation of this object.

**Signature:**

```typescript
toJSON(): object;
```

**Returns:**

object

A JSON-serializable representation of this object.
