You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gate dashboard access behind Google sign-in when AUTH_SECRET is set.
Uses Auth.js v5 with JWT sessions (no DB changes), Next.js 16 proxy,
domain/email restriction, and sign-out menu in nav bar.
Made-with: Cursor
CRON_SECRET=your_secret_here # protects the cron endpoint
196
-
DASHBOARD_PASSWORD=your_password # optional basic auth for the dashboard
197
196
198
197
# Email alerts via Resend (optional)
199
198
RESEND_API_KEY=re_xxxxxxxxxxxx
@@ -376,6 +375,44 @@ The import uses HiBob's `Group` and `Team` columns (falling back to `Department`
376
375
377
376
---
378
377
378
+
## Authentication
379
+
380
+
Authentication is **fully optional**. When no auth environment variables are set, the dashboard is open (the default behavior). Setting `AUTH_SECRET` enables Google OAuth sign-in.
381
+
382
+
### Setup
383
+
384
+
1. Create a [Google OAuth app](https://console.cloud.google.com/apis/credentials) with redirect URI:
0 commit comments