supabase-auth-emailslisted
Install: claude install-skill tanfust/skills
# Supabase Auth emails with React Email
Two things go wrong with auth emails, and neither throws. The template looks right in the local mail catcher and production keeps sending the Supabase default, because `config.toml` is local configuration and nobody pushed it. Or the email arrives, the button works on the laptop that requested it, and fails for every customer who opens it on their phone, because the link depends on a cookie that only exists in the first browser. So the work is not finished when the template renders. It is finished when a link from a real send, opened in a browser that did not request it, produces a signed-in session, locally and on the hosted project.
This skill covers the five action emails Supabase lets you template: `confirmation`, `magic_link`, `recovery`, `invite`, `email_change`. React Email is the authoring tool; Supabase only ever sees static HTML with Go template variables in it.
## Order of work
1. Decide the link flow before writing any template
2. Set up custom SMTP, because the default sender does not reach customers
3. Write the templates against a shared layout
4. Build to static HTML with the Go variables passed through as props
5. Wire `config.toml` and restart the local stack
6. Push to the hosted project
7. Verify: build, send, open on another device, check production
## 1. Decide the link flow
`{{ .ConfirmationURL }}` points at Supabase's `/auth/v1/verify` endpoint, which verifies the token and redirects to your site. With the