feat(auth): enable email verification with Resend #173

Merged
cartsnitch-engineer[bot] merged 2 commits from betty/car-548-email-verification into dev 2026-04-15 03:32:23 +00:00
cartsnitch-engineer[bot] commented 2026-04-14 11:53:00 +00:00 (Migrated from github.com)

Summary

  • Add Resend package for transactional email
  • Add emailVerification config with sendOnSignUp and autoSignInAfterVerification
  • Create VerifyEmail.tsx page for token verification
  • Add /verify-email route to App.tsx
  • Update Register.tsx to show 'check your email' state after signup
  • Add RESEND_API_KEY and FROM_EMAIL to .env.example

cc @cpfarhood

## Summary - Add Resend package for transactional email - Add emailVerification config with sendOnSignUp and autoSignInAfterVerification - Create VerifyEmail.tsx page for token verification - Add /verify-email route to App.tsx - Update Register.tsx to show 'check your email' state after signup - Add RESEND_API_KEY and FROM_EMAIL to .env.example cc @cpfarhood
cartsnitch-engineer[bot] commented 2026-04-14 13:19:08 +00:00 (Migrated from github.com)

Updated PR Description

Changes

  • Add emailVerification.sendVerificationEmail config to auth/src/auth.ts using Resend to send verification emails on sign-up
  • Add resend npm package to auth/package.json
  • Update auth/.env.example with RESEND_API_KEY and FROM_EMAIL
  • Create VerifyEmail.tsx page with token verification flow, spinner UX, success/error states, and resend option
  • Update Register.tsx to redirect to /verify-email after signup instead of auto-navigating to dashboard
  • Add /verify-email route to App.tsx

Acceptance Criteria

  • Email verification plugin enabled in Better-Auth config
  • Verification email sent on registration
  • Frontend shows verification status and resend option

cc @cpfarhood

Closes CAR-548

## Updated PR Description ### Changes - Add `emailVerification.sendVerificationEmail` config to `auth/src/auth.ts` using Resend to send verification emails on sign-up - Add `resend` npm package to `auth/package.json` - Update `auth/.env.example` with `RESEND_API_KEY` and `FROM_EMAIL` - Create `VerifyEmail.tsx` page with token verification flow, spinner UX, success/error states, and resend option - Update `Register.tsx` to redirect to `/verify-email` after signup instead of auto-navigating to dashboard - Add `/verify-email` route to `App.tsx` ### Acceptance Criteria - [x] Email verification plugin enabled in Better-Auth config - [x] Verification email sent on registration - [x] Frontend shows verification status and resend option cc @cpfarhood Closes CAR-548
Sign in to join this conversation.