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.

Valoramos su privacidad

Este sitio web utiliza cookies para análisis anónimos que nos ayudan a mejorar su experiencia. No se almacena ni comparte información personal. Puede permitir o rechazar el seguimiento analítico en cualquier momento. Consulte nuestra Política de Privacidad.

Usamos cookies para análisis anónimos. No se almacena información personal. Consulte nuestra Política de Privacidad.