From b8f6c17cf096fed95490195c890af9f406bc4bf7 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Thu, 31 Aug 2023 12:28:44 +0100 Subject: [PATCH] fix type --- frontend/src/features/auth/services/auth-service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }