Better Auth for EmDash

Autenticazione completa per EmDash CMS basata su Better Auth: email e password, accesso social, senza password, 2FA, passkey, organizzazioni, provider OIDC, fatturazione Stripe e registro di audit.

Estensione

Better Auth for EmDash

Autenticazione completa per EmDash CMS basata su Better Auth: email e password, accesso social, senza password, 2FA, passkey, organizzazioni, provider OIDC, fatturazione Stripe e registro di audit.

  • Categoria: Sicurezza
  • Stato: Disponibile
  • Versione: 0.16.0
  • Prezzo: Sconosciuto
  • Fonte: Pacchetto npm
  • Installazione: Integrazione npm nativa
  • Verificato: 2026-11-01

Autenticazione completa per EmDash CMS basata su Better Auth: email e password, accesso social, senza password, 2FA, passkey, organizzazioni, provider OIDC, fatturazione Stripe e registro di audit.

Installazione

Installa il pacchetto da npm:

npm install emdash-better-auth

Registra il plugin nella configurazione di 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
    }),
  ],
});

Dettagli