Skip to content
Snippets Groups Projects

Move back cookie fetch to SignInForm. Role fetched and saved into a Context. Small refactorings.

Merged Defendi Alberto requested to merge feature/role into dev
1 file
+ 0
3
Compare changes
  • Side-by-side
  • Inline
@@ -26,9 +26,6 @@ export const SignInForm: FC = () => {
};
if (!isCookieFetched) fetchCookie();
}, [isCookieFetched]);
console.log(isCookieFetched);
const history = useHistory();
const { setRole } = useContext(AuthContext);
Loading