Better Auth for EmDash
由 Better Auth 驅動的 EmDash CMS 完整認證方案:郵箱密碼、社交登入、無密碼、雙重驗證、通行金鑰、組織、OIDC 提供商、Stripe 計費和審計日誌。
外掛
Better Auth for EmDash
由 Better Auth 驅動的 EmDash CMS 完整認證方案:郵箱密碼、社交登入、無密碼、雙重驗證、通行金鑰、組織、OIDC 提供商、Stripe 計費和審計日誌。
由 Better Auth 驅動的 EmDash CMS 完整認證方案:郵箱密碼、社交登入、無密碼、雙重驗證、通行金鑰、組織、OIDC 提供商、Stripe 計費和審計日誌。
安裝
從 npm 安裝此套件:
npm install emdash-better-auth
在 Astro 設定中註冊此外掛:
// astro.config.mjs
import react from "@astrojs/react";
import tailwindcss from "@tailwindcss/vite";
import { betterAuthProvider, betterAuthSettingsPlugin } from "emdash-better-auth";
export default defineConfig({
output: "server",
vite: { plugins: [tailwindcss()] }, // required for the HeroUI auth styles
integrations: [
react(), // auth pages are React islands
emdash({
/* ...your database / storage... */
authProviders: [betterAuthProvider()], // sign-in/up, /auth/*, /account/*
plugins: [betterAuthSettingsPlugin()], // optional: admin settings page
}),
],
});
詳細資訊
- 最新版本: 0.16.0
- 授權條款: MIT
- 發布者: The Weekend Projects
- 需求: EmDash
>=0.30.0 - 原始碼儲存庫: https://github.com/theweekendprojects/emdash-better-auth
- npm 套件: emdash-better-auth