Skip to content

feat: email verification for email/password signup (#691) - #774

Open
saurabhhhcodes wants to merge 1 commit into
roshankumar0036singh:mainfrom
saurabhhhcodes:fix/691-email-verification
Open

feat: email verification for email/password signup (#691)#774
saurabhhhcodes wants to merge 1 commit into
roshankumar0036singh:mainfrom
saurabhhhcodes:fix/691-email-verification

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Closes #691

What

Email/password signup now requires email verification before the user can access the app.

app/src/lib/AuthContext.js

  • signUp: sends a Firebase sendEmailVerification email after account creation, then signs the new user out — they stay on the auth screen with a "check your inbox" message until verified
  • signIn: reload()s the user and blocks access with a new auth/email-not-verified error when emailVerified is false (signs out so the app never proceeds in an unverified session)
  • resendVerificationEmail(email, password): re-authenticates, resends the verification email, signs out again
  • Emulator mode (EXPO_PUBLIC_USE_EMULATORS) skips verification gating — real emails can't be delivered, and the Google emulator flows rely on signUp

app/src/screens/AuthScreen.js

  • Verification-required banner (email shown, "check your inbox and click the link, then sign in again") with a Resend verification email button
  • Signup success now switches to the sign-in tab and shows "Account created! A verification email has been sent…"
  • auth/email-not-verified / auth/verification-email-sent messages added to the error map

Flow: sign up → verification email sent → user sees inbox message → clicks link → signs in → app checks emailVerified → grants access. Resend available if the first email is lost.

Verify

  • node --check on both files, prettier clean
  • Emulator/Google flows unchanged (gated only in non-emulator mode)

…ngh#691)

- signUp: sends a Firebase verification email after account creation and
  signs the new user out, keeping them on the auth screen with a
  'check your inbox' message until verified
- signIn: reloads the user and blocks access with
  auth/email-not-verified when emailVerified is false, then signs out
- resendVerificationEmail(email, password): re-authenticates, resends the
  verification email, and signs out again
- AuthScreen: verification-required banner with a resend button; signup
  success switches to the sign-in tab with the inbox message
- Emulator mode (no real email delivery) skips verification gating so
  existing emulator flows keep working
@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@saurabhhhcodes, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 37 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6232aa91-56f3-47c6-a614-cec6dcbe0ccd

📥 Commits

Reviewing files that changed from the base of the PR and between 71cc0da and 69b6cc2.

📒 Files selected for processing (2)
  • app/src/lib/AuthContext.js
  • app/src/screens/AuthScreen.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add email verification for new users

1 participant