Skip to content

fix: support force disconnect wallet in case of error#1166

Merged
sidvishnoi merged 1 commit into
mainfrom
support-force-disconnect
Aug 22, 2025
Merged

fix: support force disconnect wallet in case of error#1166
sidvishnoi merged 1 commit into
mainfrom
support-force-disconnect

Conversation

@sidvishnoi

@sidvishnoi sidvishnoi commented Aug 21, 2025

Copy link
Copy Markdown
Member

Context

Closes #1162

Changes proposed in this pull request

When there are issues with disconnecting wallet, show user an error and allow force disconnecting.

image

The error is only shown when disconnecting from WalletInfo page. On keyRevoked error page, I decided to enable force by default to not add new UI.

Note: When we do a force disconnect, the access token isn't revoked from wallet end. We just delete it from our local storage (forget about it), so the user can move forward with their life. Hence, there can be dangling grants shown in wallet UI.


I considered adding a job queue for when things fail and doing them later on, but it had issues with authentication (in case client changed after a reconnect etc.). So, decided to keep it simple.

@sidvishnoi sidvishnoi requested a review from DarianM August 21, 2025 11:37
@github-actions github-actions Bot added area: background Improvements or additions to extension background script area: popup Improvements or additions to extension popup area: i18n area: pages Changes to any of extension's pages area: shared Changes to shared libraries and utilities labels Aug 21, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Extension builds preview

Name Link
Latest commit d105c3f
Latest job logs Run #17125763849
Chrome (997.54KB)Download
Firefox (997.57KB)Download
Safari (1.92MB)Download

@sidvishnoi sidvishnoi merged commit 915675b into main Aug 22, 2025
14 checks passed
@sidvishnoi sidvishnoi deleted the support-force-disconnect branch August 22, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: background Improvements or additions to extension background script area: i18n area: pages Changes to any of extension's pages area: popup Improvements or additions to extension popup area: shared Changes to shared libraries and utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Can't disconnect wallet

2 participants