Better Auth for EmDash

Full authentication for EmDash CMS powered by Better Auth: email and password, social login, passwordless, 2FA, passkeys, organizations, OIDC provider, Stripe billing and audit logging.

Plugin

Better Auth for EmDash

Full authentication for EmDash CMS powered by Better Auth: email and password, social login, passwordless, 2FA, passkeys, organizations, OIDC provider, Stripe billing and audit logging.

  • Category: Security
  • Status: available
  • Version: 0.16.0
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash >=0.30.0
  • Maintainer: The Weekend Projects

Full authentication for EmDash CMS powered by Better Auth: email and password, social login, passwordless, 2FA, passkeys, organizations, OIDC provider, Stripe billing and audit logging.

Installation

Install the package from npm:

npm install emdash-better-auth

Register the plugin in your Astro config:

// 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
    }),
  ],
});

Details