TOTP 2FA

Adds TOTP two-factor sign-in codes to a Payload auth collection

Community 6 276/wk MIT v3.0.0-beta.1

Installation

pnpm add @clocklimited/payload-2fa

About

This plugin adds a second sign-in step for one auth-enabled collection, usually the users collection. After a user enters their password, they must also enter a six-digit code from an authenticator app such as Google Authenticator, Authy or Microsoft Authenticator. Users can scan a QR code in their account settings to link the app, and admins can choose to require setup at first login.

The check runs in front of the collection's existing access rules, so role-based permissions still apply once the code passes. API key clients are supported, and the admin interface can be translated and shown in light or dark theme. Admins can also remove or reset another user's 2FA from the user edit screen, limited to people you choose.

Package info

Package name
@clocklimited/payload-2fa
Latest version
3.0.0-beta.1
Unpacked size
324 kB
License
MIT
Weekly downloads
276
Last publish
May 27, 2025

Similar plugins

More in Auth

Birth month and year check at sign-up that flags minors by country and region

Lets one Payload admin panel manage content for many separate tenants

Linked accounts and role hats, with a second factor before switching to a sensitive role

Sells digital products with signed download links that expire and stop on refund

Adds passkey sign-in and passkey management to the Payload login and account screens

Lets AI assistants read and edit Payload content over MCP with scoped API keys