Better Auth for EmDash
Better Auth を使った EmDash CMS 向けの完全な認証機能。メールとパスワード、ソーシャルログイン、パスワードレス、2FA、パスキー、組織、OIDC プロバイダー、Stripe 課金、監査ログに対応します。
プラグイン
Better Auth for EmDash
Better Auth を使った EmDash CMS 向けの完全な認証機能。メールとパスワード、ソーシャルログイン、パスワードレス、2FA、パスキー、組織、OIDC プロバイダー、Stripe 課金、監査ログに対応します。
Better Auth を使った EmDash CMS 向けの完全な認証機能。メールとパスワード、ソーシャルログイン、パスワードレス、2FA、パスキー、組織、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