diff --git a/cryptide_project/src/Contexts/AuthContext.tsx b/cryptide_project/src/Contexts/AuthContext.tsx index ac1b880..9adf7ef 100644 --- a/cryptide_project/src/Contexts/AuthContext.tsx +++ b/cryptide_project/src/Contexts/AuthContext.tsx @@ -23,6 +23,8 @@ const AuthProvider: React.FC<{ children: ReactNode }> = ({ children }) => { const [manager] = useState(new Manager(new DbUserService())) const login = async () => { + const [u, bool] = await manager.userService.fetchUserInformation() + setUser(u) setIsLoggedIn(true); };