Email domain whitelist for signups (Onit, McCarthy Finch, K1)

↗ view on GitHub · Nick Whitehouse · 2026-05-01 · 79b39c9e

- backend/migrations/001_email_domain_whitelist.sql: BEFORE INSERT trigger on auth.users that rejects emails outside the allowed list. Hard-enforced at the DB so it applies to API clients and the Supabase dashboard, not just our frontend
- Mirrored client-side check in signup form for instant UX feedback. To update the list later, edit the array in both places and re-run the SQL

Apply by pasting backend/migrations/001_email_domain_whitelist.sql into Supabase → SQL Editor.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Repository nwhitehouse/mike
Author Nick Whitehouse <nick.whitehouse@mccarthyfinch.com>
Authored
Parents 4d13761c
Stats 2 files changed , +64
Part of Launch-week hosting and CI ops

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-79b39c9e.md from inside the repo you want the change in.

⬇ Download capture-commit-79b39c9e.md