Move back cookie fetch to SignInForm. Role fetched and saved into a Context. Small refactorings.
Compare changes
- Defendi Alberto authored
@@ -6,6 +6,7 @@ import { AuthContext } from 'components/AuthUser/AuthContext';
@@ -31,17 +32,21 @@ export const PrivateRoute = ({
@@ -52,7 +57,7 @@ export const PrivateRoute = ({