计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
better-auth-plugins【效率与协作】Better Auth plugin system for TypeScript. Use when adding advanced auth features (2FA, magic link, passkey, username, JWT, organizations) via server and client plugins.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
better-auth/plugins and add it to plugins.generate or migrate) when required.better-auth/client/plugins.import { betterAuth } from "better-auth";
import { twoFactor } from "better-auth/plugins";
export const auth = betterAuth({
plugins: [twoFactor()],
});
import { createAuthClient } from "better-auth/client";
import { twoFactorClient } from "better-auth/client/plugins";
export const authClient = createAuthClient({
plugins: [twoFactorClient({ twoFactorPage: "/two-factor" })],
});
Run the CLI when a plugin adds tables:
npx @better-auth/cli generate
npx @better-auth/cli migrate
nextCookies (if used) last in the server plugin list.toolchains/platforms/auth/better-auth/better-auth-plugins/references/plugins-index.md