Skip to content
Snippets Groups Projects
Verified Commit fe15a7fb authored by Defendi Alberto's avatar Defendi Alberto
Browse files

Avoid continous api call refresh.

parent b4ee6740
No related branches found
No related tags found
2 merge requests!56Refined auth flow and new website pages.,!45Polished auth flow including ReservedRoute and role selection.
......@@ -31,7 +31,7 @@ export const App: FC = () => {
// Initialize asking the server if this session is already logged in.
isAuthenticated().then((responseState) => setIsAuth(responseState));
getRole().then((responseRole) => setRole(responseRole));
}, []);
}, [isAuth, role]);
return (
<div data-testid="App">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment