Skip to content

Discord OAuth

SmartCAD uses Discord as its only login provider. You need to create a Discord application and configure it before starting the stack.

Create a Discord application

  1. Go to discord.com/developers/applications and click New Application
  2. Go to OAuth2 → copy the Client ID and Client Secret
  3. Under Redirects, add:
https://cad.yourcommunity.com/api/auth/callback/discord

Replace cad.yourcommunity.com with your actual domain.

Warning: The redirect URI must match your BASE_URL exactly - including https:// and with no trailing slash.

Get your role IDs

  1. In Discord, go to User Settings → Advanced and enable Developer Mode
  2. Go to your server → Server Settings → Roles
  3. Right-click any role and click Copy Role ID

Role IDs can be configured either in .env before first boot, or at any time from the Community Oversight → Settings admin panel.

See Roles & Permissions for how these map to access levels.

SmartCAD - Built for smart FiveM communities