Skip to content

Commit

Permalink
fixup! clear BrowserStorage with possibly sensitive data when another…
Browse files Browse the repository at this point in the history
… user is logged in on this device

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Aug 22, 2023
1 parent 127e00d commit 7e0ea21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ export default {
const lastLoggedInUser = BrowserStorage.getItem('last_logged_in_user')
if (authorizedUser !== lastLoggedInUser) {
// TODO introduce helper/util to list and clear all sensitive data
// or create BrowserSensitiveStorage for this purposes,
// if we have more than one source
BrowserStorage.removeItem('cachedConversations')
}
Expand Down

0 comments on commit 7e0ea21

Please sign in to comment.