mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
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:
1 parent
4d4ad93e5d
commit
0e83ade287
1 file changed
+2
@@ -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();
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user