diff --git a/src/components/contexts/UserContext.jsx b/src/components/contexts/UserContext.jsx index 48831b3..e0c11b3 100644 --- a/src/components/contexts/UserContext.jsx +++ b/src/components/contexts/UserContext.jsx @@ -54,6 +54,7 @@ export const UserProvider = ({ children }) => { return auth.signUp(username, password) .then((result) => { if (result.message) throw new Error(result.message); + return signIn(username, password); }) .catch((error) => { setError(error.message);