Skip to content

Commit

Permalink
enhancement: added a page reload when user clicks Sign Out
Browse files Browse the repository at this point in the history
  • Loading branch information
arandel1 committed Sep 30, 2024
1 parent 92fb87a commit 64c6263
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/useAuth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ export const SignInButton = () => (
* A button that signs the user out of the app using Firebase Auth.
*/
export const SignOutButton = () => (
<button type="button" onClick={() => auth.signOut()}>
<button
type="button"
onClick={() => auth.signOut() && window.location.reload()}
>
Sign Out
</button>
);
Expand Down

0 comments on commit 64c6263

Please sign in to comment.