Repository navigation
Commit 8b7d082
Add OTP email confirmation for mobile signups with auth test suite
Tags each signup with its origin so the Supabase email template can
render the right confirmation surface per client, and wires the mobile
side to consume a 6-digit OTP instead of relying on a web redirect.
- Web and mobile signUp now pass signup_source ('web' / 'mobile') in
options.data so the Supabase email template can branch via
{{ if eq .Data.signup_source "mobile" }}.
- New mobile VerifyOtpScreen: 6-digit numeric input with non-numeric
filtering, verifyOtp({type: 'signup'}) on submit, inline error
display, 30-second resend cooldown, and a back-to-signup link.
- AuthNavigator registers VerifyOtp; SignUpScreen now navigates to it
instead of showing the old alert and bouncing back to Login.
Also lands a Jest + jest-expo + Testing Library setup with 32 tests
across 5 suites (AuthContext, SignUpScreen, VerifyOtpScreen,
LoginScreen, format util). The AuthContext suite includes an explicit
assertion that signUp passes signup_source: 'mobile' — the exact
regression the earlier "no code in email" debugging surfaced.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 8c58e71 commit 8b7d082
14 files changed
Lines changed: 3336 additions & 92 deletions
File tree
- client/src/context
- mobile
- src
- context
- __tests__
- screens/auth
- __tests__
- utils/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments