Skip to content

Conversation

@darkwing
Copy link
Contributor

@darkwing darkwing commented Jul 20, 2022

Explanation

Currently, when the service worker restarts, the user gets logged out. This PR is the extension portion of the login fix. More details will be added as we get further along.

More Information

Depends on:

Manual Testing Steps

  • Start the extension in mv3 mode: yarn start:mv3
  • Login to MetaMask
  • ... wait 5+ minutes for the service worker to restart ...
  • Open the extension
  • See that you're still logged in

Pre-Merge Checklist

  • PR template is filled out
  • IF this PR fixes a bug, a test that would have caught the bug has been added
  • PR is linked to the appropriate GitHub issue
  • PR has been added to the appropriate release Milestone

+ If there are functional changes:

  • Manual testing complete & passed
  • "Extension QA Board" label has been applied

@darkwing darkwing requested a review from a team as a code owner July 20, 2022 19:41
@darkwing darkwing requested a review from brad-decker July 20, 2022 19:41
@darkwing darkwing marked this pull request as draft July 20, 2022 19:41
@github-actions
Copy link
Contributor

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.


// Log them in if possible
if (isManifestV3()) {
chrome.storage.local.get(['decryptedKey']).then(({ key }) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced this is the best place for this call, but parking it here for now, since we attempt password submission right above it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be chrome.storage.session right?

@kumavis
Copy link
Member

kumavis commented Jul 21, 2022

be sure to include "delete key on user log out" to the requirements/testing

@hilvmason hilvmason added the PR - P1 identifies PRs deemed priority for Extension team label Aug 2, 2022
@darkwing
Copy link
Contributor Author

Closing as our original idea won't work

@darkwing darkwing closed this Aug 11, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2022
@darkwing darkwing deleted the mv3-keep-user-logged-in branch August 11, 2022 18:41
@hilvmason hilvmason removed the PR - P1 identifies PRs deemed priority for Extension team label Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MV3: Ensure user remains logged in after service work restart

4 participants