refactor(better-auth): login/signup#4592
refactor(better-auth): login/signup#4592jog1t wants to merge 51 commits into04-04-chore_migrate_to_better-authfrom
Conversation
…rted to feature flags
…rding footer support button
…s.tsx to features flags
…to _context level
… to _context level
|
🚅 Deployed to the rivet-pr-4592 environment in rivet-frontend
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR Review: Better-Auth Login/Signup RefactorOverviewThis PR implements a comprehensive refactor of authentication flows from Clerk to better-auth, adding email verification, password reset, organization member management, and invitation acceptance across 114 files. Positive ObservationsArchitecture & Form Patterns
Error Handling
Organization Features
IssuesCriticalWeak password validation on sign-up ( Sign-up uses HighOpen redirect via unvalidated The E2E test coverage gap
MediumType safety lost with double casting (
Turnstile race condition (multiple auth forms) The submit handler bails with an error when Non-null assertion without guard (
LowSession state race in email pending (
Throwing a plain object instead of an Error instance (
Security Notes
Summary
|
…ify-email-pending
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: