-
Notifications
You must be signed in to change notification settings - Fork 5k
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
feat: auth & profile sync logic improvements #30174
base: main
Are you sure you want to change the base?
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. |
New and updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎ To accept the risk, merge this PR and you will not be notified again.
Next stepsWhat is network access?This module accesses the network. Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use. Take a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with
|
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
Builds ready [592b8ec]
Page Load Metrics (1926 ± 64 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [8de24e0]
Page Load Metrics (1619 ± 73 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Description
This PR improves the overall logic behind auth & profile syncing.
Changelog:
@metamask/profile-sync-controller
tov6.0.0
and@metamask/notification-services-controller
tov0.19.0
useSignOut
hook to programmatically sign users outuseAutoSignIn
hook so it encapsulates all automatic sign in logic.useAutoSignOut
hook to manage automatic sign outs.UserStorageController
MetaMetrics dependencyUserStorageController
allowedActions
NotificationServicesController
to enable profile syncingRelated issues
Fixes: https://consensyssoftware.atlassian.net/browse/IDENTITY-18
Manual testing steps
/login
call in the network tab)/login
call in the network tab)/login
call in the network tabScreenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist