Constructors
constructor
new MFATicket( client: Client, ticket: { _id: string; account_id: string; authorised: boolean; last_totp_code?: null | string; token: string; validated: boolean; }, mutate: SetStoreFunction< { email_mfa: boolean; email_otp: boolean; recovery_active: boolean; security_key_mfa: boolean; totp_mfa: boolean; trusted_handover: boolean; }, >,): MFATicket Parameters
- client: Client
- ticket: {
_id: string;
account_id: string;
authorised: boolean;
last_totp_code?: null | string;
token: string;
validated: boolean;
}_id: string
account_id: string
authorised: boolean
Optional
last_totp_code?: null | string
token: string
validated: boolean
- mutate: SetStoreFunction<
{
email_mfa: boolean;
email_otp: boolean;
recovery_active: boolean;
security_key_mfa: boolean;
totp_mfa: boolean;
trusted_handover: boolean;
},
>
Accessors
Methods
deleteAccount
deleteAccount(): Promise<void>
disableAccount
disableAccount(): Promise<void>
disableAuthenticator
disableAuthenticator(): Promise<void>
fetchRecoveryCodes
fetchRecoveryCodes(): Promise<string[]> Returns Promise<string[]>
List of codes
generateAuthenticatorSecret
generateAuthenticatorSecret(): Promise<string> Returns Promise<string>
Secret
generateRecoveryCodes
generateRecoveryCodes(): Promise<string[]> Returns Promise<string[]>
List of codes
MFA Ticket