@owlmeans/server-auth-otp
v0.1.11
Published
Email OTP `AuthPlugin` for OwlMeans servers — passwordless login via time-limited one-time codes.
Readme
@owlmeans/server-auth-otp
Email OTP AuthPlugin for OwlMeans servers — passwordless login via time-limited one-time codes.
Overview
makeOtpPlugin(context)— factory for theAuthPluginthat handlesOTP_AUTH_TYPEauthentication requestsOtpService— issues email challenges and verifies submitted codes; backed by@owlmeans/auth-otp- Integrates with
@owlmeans/server-authplugin registry — plugs in alongside other auth strategies - Resolves identities through
@owlmeans/server-auth-identityafter OTP verification
Installation
bun add @owlmeans/server-auth-otpUsage
import { makeOtpPlugin, OTP_SERVICE } from '@owlmeans/server-auth-otp'
import { registerPlugin } from '@owlmeans/server-auth/manager/plugins'
// Register in a server context that already has an OtpService wired
registerPlugin(context, makeOtpPlugin(context))The OTP service must be backed by a transport (e.g. @owlmeans/mailer → @owlmeans/server-mailer-mailgun) that can deliver the one-time code.
Agent guidance
This package ships embedded Claude Code skills and GitHub Copilot instructions under
agent-meta/. After installing your @owlmeans/* packages, run the OwlMeans
agent-skills installer to place them into your project's native locations
(.claude/skills/ and .github/instructions/):
npx @owlmeans/agent-skillsThe embedded files are version-matched to this package release. Do not edit them directly — they are regenerated on each publish. To contribute guidance edits, open a PR against the source monorepo.
