feat: update fixing service auth

This commit is contained in:
hanif salafi 2025-01-02 12:13:05 +07:00
parent 831c79e39e
commit 626aac592a
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import qs from "qs";
import { getAPIDummy } from "./http-config/axiosCustom";
import { httpPost } from "./http-config/http-base-service";
import {
@ -8,7 +9,11 @@ import {
export async function login(data: any) {
const pathUrl = "signin";
return httpPost(pathUrl, data);
const headers = {
'content-type': 'application/x-www-form-urlencoded',
};
return httpPost(pathUrl, headers, qs.stringify(data));
}
export async function getProfile(token: any) {