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).
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
- Latest version: 0.1.4
- License: MIT
- Publisher: leCielEtoile
- Requires: EmDash
>=1.1.0 <2 - Source repository: https://github.com/leCielEtoile/emdash-auth-discord
- npm package: emdash-auth-discord