Skip to content

Commit

Permalink
Remove relevant console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatrakazas committed Jan 22, 2025
1 parent c43955b commit 541b21d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/context/SessionContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const SessionContextProvider = ({ children }) => {
// Memoize clearSession using useCallback
const clearSession = useCallback(async () => {
sessionStorage.setItem('freshLogin', 'true');
console.log('Clear Session');
api.clearSession();
}, [api]);

Expand All @@ -42,7 +41,6 @@ export const SessionContextProvider = ({ children }) => {

// The close() will dispatch Event CloseSessionTabLocal in order to call the clearSession
const logout = async () => {
console.log('Logout');
await keystore.close();
};

Expand Down
4 changes: 0 additions & 4 deletions src/services/LocalStorageKeystore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export function useLocalStorageKeystore(eventTarget: EventTarget): LocalStorageK

const closeSessionTabLocal = useCallback(
async (): Promise<void> => {
console.log('KeystoreEvent: closeSessionTabLocal');
eventTarget.dispatchEvent(new CustomEvent(KeystoreEvent.CloseSessionTabLocal));
clearSessionStorage();
},
Expand All @@ -110,7 +109,6 @@ export function useLocalStorageKeystore(eventTarget: EventTarget): LocalStorageK

const close = useCallback(
async (): Promise<void> => {
console.log('Close');
await idb.destroy();
clearPrivateData();
clearGlobalUserHandleB64u();
Expand Down Expand Up @@ -149,7 +147,6 @@ export function useLocalStorageKeystore(eventTarget: EventTarget): LocalStorageK
if (userHandleB64u && globalUserHandleB64u && (userHandleB64u !== globalUserHandleB64u)) {
// When user logs in in any tab, log out in all other tabs
// that are logged in to a different account
console.log('closeSessionTabLocal by globalUserHandleB64u');
closeSessionTabLocal();
}
},
Expand All @@ -160,7 +157,6 @@ export function useLocalStorageKeystore(eventTarget: EventTarget): LocalStorageK
() => {
if (!privateData) {
// When user logs out in any tab, log out in all tabs
console.log('closeSessionTabLocal by privateData')
closeSessionTabLocal();
}
},
Expand Down

0 comments on commit 541b21d

Please sign in to comment.