Skip to content

Commit

Permalink
Log out of api module on KeystoreEvent.CloseTabLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Dec 6, 2024
1 parent 9cc6dac commit 95b8bed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/context/SessionContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const SessionContextProvider = ({ children }) => {
};

keystoreEvents.addEventListener(KeystoreEvent.Close, logout, { once: true });
keystoreEvents.addEventListener(KeystoreEvent.CloseTabLocal, api.clearSession, { once: true });

const value: SessionContextValue = {
api,
Expand Down

0 comments on commit 95b8bed

Please sign in to comment.