From f716962438f093bc3d1e8e33c3a86b90822d9009 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Thu, 3 Jul 2025 23:50:28 +0700 Subject: [PATCH] feat: fixing login --- service/master-user.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/service/master-user.ts b/service/master-user.ts index f92f9db..931d468 100644 --- a/service/master-user.ts +++ b/service/master-user.ts @@ -42,20 +42,13 @@ export async function deleteMasterUser(id: string) { } export async function postSignIn(data: any) { - const headers = { - accept: "application/json", - "content-type": "application/json", - }; const pathUrl = `/users/login`; - return await httpPost(pathUrl, headers, data); + return await httpPost(pathUrl, data); } export async function getProfile(code?: string) { - const headers = { - "content-type": "application/json", - Authorization: `Bearer ${code || token}`, - }; - return await httpGet(`/users/info`, headers); + const pathUrl = `/users/info`; + return await httpGet(pathUrl); } export async function updateProfile(data: any) {