Skip to content
This repository was archived by the owner on Sep 24, 2026. It is now read-only.

feat(auth): add email verification step to signup - #277

Draft
jzhou-otterai wants to merge 1 commit into
mainfrom
feat/email-verification
Draft

jzhou-otterai wants to merge 1 commit into
mainfrom
feat/email-verification

Conversation

@jzhou-otterai

Copy link
Copy Markdown
Member

What

Adds the client side of the new signup email-verification flow. After an email signup — or when logging into an account that isn't verified yet — the auth modal shows a code-entry step. The JWT is only stored once the code is verified.

Changes

  • VerifyEmailContent.tsx (new): code-entry view (mirrors the reset-password code step) with a "Send me a new code" resend link.
  • AuthForm.tsx: email signups now return no token → switch to the verify step instead of logging in. Logging into an unverified account (email_not_verified) jumps to the verify step and emails a fresh code. onVerified stores the JWT and completes signup.
  • API constants/types for /auth/email/verify and /auth/email/verify/send; messages for email_not_verified / invalid_verify_key.

Social and already-verified email logins are unchanged.

Verification

  • bun run lint-nofix ✅ clean
  • tsc --noEmit ✅ clean

Requires the backend PR UWFlow/uwflow#191 (new /auth/email/verify* endpoints + verified column). Without it, signup will not return the no-token response that triggers the verify step.

🤖 Generated with Claude Code

After an email signup (or when logging into an unverified account), the
auth modal now shows a code-entry step. The JWT is only stored once the
code is verified via /auth/email/verify; a resend link requests a new
code. Social and already-verified logins are unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
uwflow-frontend Ready Ready Preview, Comment Jun 22, 2026 2:29am

This branch was successfully deployed

1 active deployment
Preview — 3db18da5 Deployed Jun 22, 2026 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant