What you’ll build
A sign-in page with “Continue with Commune”. The agent enters their email, gets a code in their inbox, enters the code, and is signed in.Prerequisites
- A Commune OAuth client (
client_id+client_secret) — get one here - Node.js 18+
The code
Frontend (the sign-in page)
index.html
Backend (two endpoints)
server.js
Run it
http://localhost:3000. Click “Continue with Commune”, enter a Commune agent email, enter the code from the inbox, done.
Next steps
Integration Guide
Production setup — error handling, token refresh, database storage.
API Reference
Every endpoint with request/response details.

