Skip to main content

MFADevice

Package: @nauth-toolkit/client Type: Interface

Information about a registered MFA device for the authenticated user.

import { MFADevice } from '@nauth-toolkit/client';

Properties

PropertyTypeRequiredDescription
idnumberYesUnique device identifier
typeMFAMethodYesMFA method type
namestringYesDevice name (user-assigned)
isPreferredbooleanYesWhether this is the preferred device for this method
isActivebooleanYesWhether device is active
createdAtstring | DateYesDevice registration timestamp

Example

{
"id": 1,
"type": "totp",
"name": "My Phone",
"isPreferred": true,
"isActive": true,
"createdAt": "2024-01-15T10:30:00.000Z"
}

Used By