diff --git a/frontend/src/features/auth/services/auth-service.ts b/frontend/src/features/auth/services/auth-service.ts index 5ded352..c96ec0f 100644 --- a/frontend/src/features/auth/services/auth-service.ts +++ b/frontend/src/features/auth/services/auth-service.ts @@ -1,12 +1,12 @@ import api from "@/lib/api-client"; -import { ILogin, IRegister, ITokenResponse, ITokens } from "@/features/auth/types/auth.types"; +import { ILogin, IRegister, ITokenResponse } from "@/features/auth/types/auth.types"; export async function login(data: ILogin): Promise{ - const req = await api.post("/auth/login", data); + const req = await api.post("/auth/login", data); return req.data as ITokenResponse; } export async function register(data: IRegister): Promise{ - const req = await api.post("/auth/register", data); + const req = await api.post("/auth/register", data); return req.data as ITokenResponse; }