Move back cookie fetch to SignInForm. Role fetched and saved into a Context. Small refactorings.
Compare changes
- Defendi Alberto authored
@@ -3,6 +3,7 @@ import axios from 'axios';
@@ -22,14 +23,12 @@ export const PrivateRoute = ({
@@ -38,9 +37,8 @@ export const PrivateRoute = ({