LogoRobo.js
TemplatesWeb apps

Discord Auth Starter

A React template with Discord authentication using @robojs/auth.

Discord Auth Starter

React with @robojs/auth for Discord authentication.

Getting Started

Create a project with this template:

npx create-robo@next <project-name> --template web-apps/discord-auth-ts

Then navigate into your project directory:

cd <project-name>

Configure Discord OAuth in .env:

DISCORD_CLIENT_ID=your-client-id
DISCORD_CLIENT_SECRET=your-client-secret

Run development mode:

npm run dev

Features

vite.mjs
.envOAuth credentials
  • Discord OAuth2 login
  • Session-aware dashboard
  • User profile access
  • Protected routes

Hosting

npm run deploy

On this page