Skip to content

Commit

Permalink
Update AuthContext.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bsu3338 authored Jul 31, 2023
1 parent fa87d2a commit 41830a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/hooks/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ const AuthContextProvider = ({
const handleLogout = () => {
logout(); // This should clear user context and do necessary cleanup
};


console('Auth Event', event);
window.addEventListener('tokenUpdated', handleTokenUpdate);
window.addEventListener('logout', handleLogout);

Expand Down

0 comments on commit 41830a9

Please sign in to comment.