Discord Login

Discord login for EmDash, restricted to members of a Discord guild (role assignment and login records).

Plugin

Discord Login

Discord login for EmDash, restricted to members of a Discord guild (role assignment and login records).

  • Category: Security
  • Status: available
  • Version: 0.1.4
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash >=1.1.0 <2
  • Maintainer: leCielEtoile

Discord login for EmDash, restricted to members of a Discord guild (role assignment and login records).

Installation

Install the package from npm:

npm install emdash-auth-discord

Register the plugin in your Astro config:

   import { defineConfig } from "astro/config"
   import emdash from "emdash/astro"
   import { discord } from "emdash-auth-discord"

   export default defineConfig({
     integrations: [
       emdash({
         authProviders: [
           discord({
             guildId: process.env.DISCORD_GUILD_ID,
             defaultRole: 10,
             siteTitle: "My Site",
             messages: { notGuildMember: "Only members of the My Site Discord server can log in." },
           }),
         ],
       }),
     ],
   })

Details