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-authHow It Works
When a user requests authentication:
- A single email is sent with both a magic link and a 6-digit OTP
- The user can click the link (one-click) or enter the OTP code
- Either method authenticates the user
This provides the best of both worlds — convenience of magic links with the fallback of OTP codes.