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
Draft
jzhou-otterai wants to merge 1 commit into
jzhou-otterai wants to merge 1 commit into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.onVerifiedstores the JWT and completes signup./auth/email/verifyand/auth/email/verify/send; messages foremail_not_verified/invalid_verify_key.Social and already-verified email logins are unchanged.
Verification
bun run lint-nofix✅ cleantsc --noEmit✅ clean🤖 Generated with Claude Code