MFADevice
Package: @nauth-toolkit/client
Type: Interface
Information about a registered MFA device for the authenticated user.
import { MFADevice } from '@nauth-toolkit/client';
Properties
| Property | Type | Required | Description |
|---|---|---|---|
id | number | Yes | Unique device identifier |
type | MFAMethod | Yes | MFA method type |
name | string | Yes | Device name (user-assigned) |
isPreferred | boolean | Yes | Whether this is the preferred device for this method |
isActive | boolean | Yes | Whether device is active |
createdAt | string | Date | Yes | Device registration timestamp |
Example
{
"id": 1,
"type": "totp",
"name": "My Phone",
"isPreferred": true,
"isActive": true,
"createdAt": "2024-01-15T10:30:00.000Z"
}
Used By
- NAuthClient.getMfaDevices() - Returns
MFADevice[]