feat: fixing login

This commit is contained in:
hanif salafi 2025-07-03 23:50:28 +07:00
parent bcbdafa8c6
commit f716962438
1 changed files with 3 additions and 10 deletions

View File

@ -42,20 +42,13 @@ export async function deleteMasterUser(id: string) {
} }
export async function postSignIn(data: any) { export async function postSignIn(data: any) {
const headers = {
accept: "application/json",
"content-type": "application/json",
};
const pathUrl = `/users/login`; const pathUrl = `/users/login`;
return await httpPost(pathUrl, headers, data); return await httpPost(pathUrl, data);
} }
export async function getProfile(code?: string) { export async function getProfile(code?: string) {
const headers = { const pathUrl = `/users/info`;
"content-type": "application/json", return await httpGet(pathUrl);
Authorization: `Bearer ${code || token}`,
};
return await httpGet(`/users/info`, headers);
} }
export async function updateProfile(data: any) { export async function updateProfile(data: any) {