fix: login endpoint
This commit is contained in:
parent
9034c62a94
commit
fe620c6336
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue