Ensure users are redirected after logging out of their accounts

Forces a page reload in `useAuth.ts` to guarantee complete state reset after logout.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/85de113c-f127-4d5a-98fc-6b76e75dc498.jpg
This commit is contained in:
michaelschal committed 2025-07-09 19:13:12 +00:00
1 parent 4d4ad93e5d
commit 0e83ade287
1 file changed
+2
+2
View File
@@ -53,6 +53,8 @@ export function useAuth() {
onSuccess: () => {
setUser(null);
queryClient.clear();
// Force a page reload to ensure all state is cleared
window.location.reload();
},
});