We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f732c93 commit 4f1616fCopy full SHA for 4f1616f
src/auth/keycloakAuth.ts
@@ -20,7 +20,7 @@ const keycloakAuthProvider: AuthProvider = {
20
if (status >= 200 && status < 300) {
21
localStorage.setItem("username", json.name);
22
// Using direct window.location.href cause {redirectTo: '/'} doesn't work.
23
- window.location.href = "/";
+ return { redirectTo: "/" };
24
}
25
});
26
},
0 commit comments