MfaApi
API client for managing multi-factor authentication (TOTP and Email).
Overview
Provides methods for listing configured MFA methods, setting up TOTP with QR codes, verifying TOTP and email codes, and removing MFA methods for the authenticated user.
Basic Usage
import { HttpService, MfaApi } from 'authsafe-ts';
const user = await oauthService.getUser();
const httpService = new HttpService(user?.access_token);
const mfaApi = new MfaApi(httpService);
const methods = await mfaApi.listMethods();