Appearance
Run locally
Requires Node.js 20+ and Git 2.38+.
- Create a Google OAuth client in Google Cloud Console (OAuth client type Web application).
- Add
http://localhost:3000/auth/google/callbackas an authorized redirect URI. - Copy
.env.exampleto.envand setGOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET. Optionally setGOOGLE_ALLOWED_DOMAINSto a comma-separated email-domain allowlist. - Start the service with
npm run devand open http://localhost:3000.
The callback URL must use the same origin as PUBLIC_URL. For a hosted deployment, set PUBLIC_URL to the HTTPS site URL and register ${PUBLIC_URL}/auth/google/callback in Google Cloud Console. Cookies become Secure when PUBLIC_URL uses HTTPS.
Use HTTPS outside local development because Git access tokens use HTTP Basic authentication. Put the service behind a TLS proxy before exposing it to a network.