Quickback Docs

Combo Auth Plugin

@kardoe/better-auth-combo-auth — Combined magic link and email OTP authentication flow.

@kardoe/better-auth-combo-auth provides a combined authentication flow that sends both a magic link and an OTP code in a single email.

Installation

npm install @kardoe/better-auth-combo-auth

How It Works

When a user requests authentication:

  1. A single email is sent with both a magic link and a 6-digit OTP
  2. The user can click the link (one-click) or enter the OTP code
  3. Either method authenticates the user

This provides the best of both worlds — convenience of magic links with the fallback of OTP codes.

On this page