[Feat] Implement removeAccount() and logoutAll() in AccountContext - #46
Merged
maneesha-xyz merged 1 commit intoJul 17, 2026
Conversation
saknarajapakshe
force-pushed
the
36-feat-remove-account-logout-all
branch
from
July 13, 2026 05:32
bcf4c5b to
90faab4
Compare
3 tasks
saknarajapakshe
force-pushed
the
36-feat-remove-account-logout-all
branch
4 times, most recently
from
July 15, 2026 06:59
067a5bc to
17fbdbe
Compare
saknarajapakshe
marked this pull request as draft
July 15, 2026 12:27
Aravinda-HWK
self-requested a review
July 15, 2026 16:46
saknarajapakshe
marked this pull request as ready for review
July 15, 2026 16:51
Aravinda-HWK
requested changes
Jul 15, 2026
saknarajapakshe
force-pushed
the
36-feat-remove-account-logout-all
branch
2 times, most recently
from
July 16, 2026 12:11
04f6194 to
0a3dc81
Compare
saknarajapakshe
force-pushed
the
36-feat-remove-account-logout-all
branch
from
July 16, 2026 12:16
0a3dc81 to
a5dceb3
Compare
saknarajapakshe
force-pushed
the
36-feat-remove-account-logout-all
branch
from
July 17, 2026 04:09
4800c8e to
dc638fa
Compare
saknarajapakshe
force-pushed
the
36-feat-remove-account-logout-all
branch
from
July 17, 2026 04:09
dc638fa to
7bf95d7
Compare
Collaborator
|
LGTM. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds
removeAccount(id)andlogoutAll()to AccountContext.removeAccount(id)logs out that account's session, clears its cached mail, and removes it from storage permanently. If you removed the active account, it switches to another linked account if there is one; otherwise, it clears the active account.logoutAll()logs out every linked account's session at once but keeps them in the accounts list so they can be re-login again with credentials, without registering account from the beginning.No UI hooked up to these yet, that's coming in #37 and #39.
Closes #36