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