Skip to content

fix: register with just an email#41

Merged
Bccorb merged 1 commit into
mainfrom
fix/email-first-registration
Jun 28, 2026
Merged

fix: register with just an email#41
Bccorb merged 1 commit into
mainfrom
fix/email-first-registration

Conversation

@Bccorb

@Bccorb Bccorb commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

What

Let users register with just an email, matching the auth server's email-first
registration flow.

Why

Registration required both email and phone, and a successful register navigated to
/verifyPhoneOTP — but the server sends an email OTP on registration and (now) issues
the session once the email is verified. The phone-first UI left users stranded on a phone
screen with no SMS sent. (Surfaced by the seamless verify conformance harness.)

Changes

  • Phone is optional on the registration form (validated only when provided).
  • A successful registration routes to /verifyEmailOTP; verifying the email code signs
    the user in.
  • Update the register unit test for the new navigation target.

Verification

npx jest green (147 tests). seamless verify --local green, including a new browser case:
register with just an email -> verify email OTP -> signed in.

Pairs with fells-code/seamless-auth-server (registration session cookies).

Make the phone optional on the registration form (validated only when provided)
and route a successful registration to email verification instead of phone
verification, matching the auth server's email-first registration flow. The user
is signed in after verifying the email code.
@Bccorb Bccorb merged commit 8c1fafb into main Jun 28, 2026
2 checks passed
@Bccorb Bccorb deleted the fix/email-first-registration branch June 28, 2026 22:02
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.

1 participant