Skip to content

Commit

Permalink
logout
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavtomar04 committed Jul 3, 2024
1 parent 7ea2d53 commit b6e629a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const App = () => {
}, [fetchUserInfo]);

const handleTabClose = (event) => {
event.preventDefault();
// Check if the tab is being refreshed
if (!isTabRefreshed.current) {
signOut(auth); // Logout only if the tab is closing, not refreshing
Expand Down

0 comments on commit b6e629a

Please sign in to comment.