diff --git a/src/contexts/AuthContext.tsx b/src/contexts/AuthContext.tsx index aab4f69..688db6b 100644 --- a/src/contexts/AuthContext.tsx +++ b/src/contexts/AuthContext.tsx @@ -19,7 +19,7 @@ export function AuthContextProvider({ children }: AuthContextProviderProps) { async function signIn(email: string, password: string) { try { - const { data } = await api.post('/users/login', { email, password }); + const { data } = await api.post('/sessions', { email, password }); if (data.user) { setUser(data.user);