-
Notifications
You must be signed in to change notification settings - Fork 5.4k
fix: social login authentication state before rehydrate cp-13.11.0 #38170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
✨ Files requiring CODEOWNER review ✨🔐 @MetaMask/web3auth (5 files, +52 -48)
|
Builds ready [cfc6d15]
UI Startup Metrics (1199 ± 109 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [97b3b51]
UI Startup Metrics (1190 ± 95 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
himanshuchawla009
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
Fixed social login authentication-state validation in rehydration flow.
Changelog
CHANGELOG entry: fixed social login authentication validation in rehydrate.
Related issues
Fixes: #38172
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Refactors social login onboarding to async-validate auth before redirects, adjusts first-time flow checks, and simplifies Account Exist/Not Found to navigate without mutating flow state; updates tests accordingly.
ui/pages/onboarding-flow/welcome/welcome.js)getIsSocialLoginUserAuthenticatedwithgetIsSocialLoginFlowand async auth check viagetIsSeedlessOnboardingUserAuthenticatedbefore redirecting.isMountedflag; handle social create vs import navigation accordingly.firstTimeFlowTypefor social flows until after OAuth result (set tosocialCreatefor new users,socialImportfor existing).account-exist.tsxandaccount-not-found.tsx:setFirstTimeFlowTypedispatches; rely on navigation only.useEffect, invert/clarify conditions to show page only for the matchingFirstTimeFlowType(socialImportfor exist,socialCreatefor not-found); otherwise redirect toONBOARDING_WELCOME_ROUTE.setFirstTimeFlowTypeand reflect new routing conditions and reset behavior in both account pages.Written by Cursor Bugbot for commit 97b3b51. This will update automatically on new commits. Configure here.