RegisterLogin
DocsPricing
RegisterLogin
  • Getting Started
  • Introduction
  • Quick Start
  • SDKs
  • React
  • TypeScript
  • Next.js
  • Express
  • NestJS
  • Python
  • API Reference
  • Support and Resources
  • FAQ
  • Contact

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();

Best Practices
  • setupTotp() — Generate a new TOTP secret and QR code for authenticator app setup
  • verifyTotp(code) — Confirm TOTP setup by verifying a code from authenticator app
  • setupEmail(email) — Enable email-based MFA and send verification code

AuthSafe

Product

HighlightFeatureIntegrationPricingFAQ

Company

AboutBlogContact

Developer

DashboardDocumentation

Legal

Terms & ConditionsPrivacyComplianceShippingCancellationAI

© 2026 AuthSafe. All rights reserved.

We value your privacy

This website uses cookies for anonymous analytics to help us improve your experience. No personal information is stored or shared. You can allow or reject analytics tracking at any time. See our Privacy Policy.

We use cookies for anonymous analytics. No personal info is stored. See our Privacy Policy.