Skip to content
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

fix: patch authentication controller sign out validation #28847

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/dist/controllers/authentication/AuthenticationController.cjs b/dist/controllers/authentication/AuthenticationController.cjs
index cc9a5e8cf810a7369414e88b035894286499b3fe..5c6bcb39164cc625cc834be1dd3cae5936ef682c 100644
--- a/dist/controllers/authentication/AuthenticationController.cjs
+++ b/dist/controllers/authentication/AuthenticationController.cjs
@@ -72,7 +72,6 @@ class AuthenticationController extends base_controller_1.BaseController {
return accessToken;
}
performSignOut() {
- __classPrivateFieldGet(this, _AuthenticationController_instances, "m", _AuthenticationController_assertLoggedIn).call(this);
this.update((state) => {
state.isSignedIn = false;
state.sessionData = undefined;
diff --git a/dist/controllers/authentication/AuthenticationController.mjs b/dist/controllers/authentication/AuthenticationController.mjs
index 16fd8750844d2f8cc5b54676e5c94a42185cf287..803c60c5895d99cdf2da737011759882ffc47384 100644
--- a/dist/controllers/authentication/AuthenticationController.mjs
+++ b/dist/controllers/authentication/AuthenticationController.mjs
@@ -69,7 +69,6 @@ class AuthenticationController extends BaseController {
return accessToken;
}
performSignOut() {
- __classPrivateFieldGet(this, _AuthenticationController_instances, "m", _AuthenticationController_assertLoggedIn).call(this);
this.update((state) => {
state.isSignedIn = false;
state.sessionData = undefined;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
"@metamask/post-message-stream": "^8.0.0",
"@metamask/ppom-validator": "0.35.1",
"@metamask/preinstalled-example-snap": "^0.2.0",
"@metamask/profile-sync-controller": "^2.0.0",
"@metamask/profile-sync-controller": "patch:@metamask/profile-sync-controller@npm%3A2.0.0#~/.yarn/patches/@metamask-profile-sync-controller-npm-2.0.0-02e028ab48.patch",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Patched until profile-sync-controller changes are released.

The next upgrade of this package has an interdependency with the network controller.

"@metamask/providers": "^18.2.0",
"@metamask/queued-request-controller": "^7.0.1",
"@metamask/rate-limit-controller": "^6.0.0",
Expand Down
28 changes: 26 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6066,7 +6066,7 @@ __metadata:
languageName: node
linkType: hard

"@metamask/profile-sync-controller@npm:^2.0.0":
"@metamask/profile-sync-controller@npm:2.0.0":
version: 2.0.0
resolution: "@metamask/profile-sync-controller@npm:2.0.0"
dependencies:
Expand All @@ -6090,6 +6090,30 @@ __metadata:
languageName: node
linkType: hard

"@metamask/profile-sync-controller@patch:@metamask/profile-sync-controller@npm%3A2.0.0#~/.yarn/patches/@metamask-profile-sync-controller-npm-2.0.0-02e028ab48.patch":
version: 2.0.0
resolution: "@metamask/profile-sync-controller@patch:@metamask/profile-sync-controller@npm%3A2.0.0#~/.yarn/patches/@metamask-profile-sync-controller-npm-2.0.0-02e028ab48.patch::version=2.0.0&hash=78af84"
dependencies:
"@metamask/base-controller": "npm:^7.0.2"
"@metamask/keyring-api": "npm:^10.1.0"
"@metamask/keyring-controller": "npm:^19.0.0"
"@metamask/network-controller": "npm:^22.0.2"
"@metamask/snaps-sdk": "npm:^6.7.0"
"@metamask/snaps-utils": "npm:^8.3.0"
"@noble/ciphers": "npm:^0.5.2"
"@noble/hashes": "npm:^1.4.0"
immer: "npm:^9.0.6"
loglevel: "npm:^1.8.1"
siwe: "npm:^2.3.2"
peerDependencies:
"@metamask/accounts-controller": ^20.0.0
"@metamask/keyring-controller": ^19.0.0
"@metamask/network-controller": ^22.0.0
"@metamask/snaps-controllers": ^9.10.0
checksum: 10/825e306c5d4cf7292c2234e91147dd9e9b9c900379bb5eb55460fd0f0ff5460a2a4a03b65d207c3640a5a954039b91a9b8ded2601b523ddc226eac6233759880
languageName: node
linkType: hard

"@metamask/providers@npm:^18.1.1, @metamask/providers@npm:^18.2.0":
version: 18.2.0
resolution: "@metamask/providers@npm:18.2.0"
Expand Down Expand Up @@ -26548,7 +26572,7 @@ __metadata:
"@metamask/ppom-validator": "npm:0.35.1"
"@metamask/preferences-controller": "npm:^14.0.0"
"@metamask/preinstalled-example-snap": "npm:^0.2.0"
"@metamask/profile-sync-controller": "npm:^2.0.0"
"@metamask/profile-sync-controller": "patch:@metamask/profile-sync-controller@npm%3A2.0.0#~/.yarn/patches/@metamask-profile-sync-controller-npm-2.0.0-02e028ab48.patch"
"@metamask/providers": "npm:^18.2.0"
"@metamask/queued-request-controller": "npm:^7.0.1"
"@metamask/rate-limit-controller": "npm:^6.0.0"
Expand Down
Loading