Ensure users are properly redirected after logging in successfully

Force a page reload in `useAuth.ts` hook to ensure correct state after authentication.

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/dc9123b6-1916-42e7-8155-5dd0740be619.jpg
This commit is contained in:
michaelschal committed 2025-07-09 19:14:33 +00:00
1 parent 0e83ade287
commit c8164a1699
1 file changed
+2
+2
View File
@@ -43,6 +43,8 @@ export function useAuth() {
onSuccess: (data) => {
setUser(data.user);
queryClient.clear();
// Force a page reload to ensure proper state update
window.location.reload();
},
});