Move back cookie fetch to SignInForm. Role fetched and saved into a Context. Small refactorings.
Compare changes
- Defendi Alberto authored
@@ -8,9 +8,29 @@ import { AuthRoutes } from 'api/routes';
@@ -33,7 +53,7 @@ export const SignInForm: FC = () => {
@@ -42,7 +62,6 @@ export const SignInForm: FC = () => {
@@ -53,7 +72,6 @@ export const SignInForm: FC = () => {