New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@bhattishani/mfa-kit

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bhattishani/mfa-kit

A flexible Multi-Factor Authentication kit for Next.js, Express, and Cloudflare applications

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

MFA Kit

A flexible Multi-Factor Authentication kit for Next.js, Express, and Cloudflare applications. This package provides a unified API for implementing various authentication factors including TOTP, OTP, PIN, and Passkeys (WebAuthn).

Installation

Using pnpm:

pnpm add @bhattishani/mfa-kit

Features

  • 🔐 Multiple authentication factors
    • Time-based One-time Passwords (TOTP)
    • One-time Passwords (OTP)
    • PIN codes
    • Passkeys (WebAuthn)
  • 🚀 Framework adapters
    • Next.js
    • Express
    • Cloudflare
  • ⚡️ Type-safe APIs
  • 🔄 Flexible flow management
  • 📦 Zero configuration required

Usage

Next.js

import { createMFAKit } from "@bhattishani/mfa-kit";
import { NextjsAdapter } from "@bhattishani/mfa-kit/adapters/nextjs";

const mfa = createMFAKit({
  adapter: new NextjsAdapter(),
  // ... your configuration
});

Express

import { createMFAKit } from "@bhattishani/mfa-kit";
import { ExpressAdapter } from "@bhattishani/mfa-kit/adapters/express";

const mfa = createMFAKit({
  adapter: new ExpressAdapter(),
  // ... your configuration
});

Cloudflare

import { createMFAKit } from "@bhattishani/mfa-kit";
import { CloudflareAdapter } from "@bhattishani/mfa-kit/adapters/cloudflare";

const mfa = createMFAKit({
  adapter: new CloudflareAdapter(),
  // ... your configuration
});

Documentation

For detailed documentation and examples, please visit our documentation site.

License

ISC

Keywords

mfa

FAQs

Package last updated on 28 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts