diff --git a/service/auth.ts b/service/auth.ts index 476c2bb1..2d03c465 100644 --- a/service/auth.ts +++ b/service/auth.ts @@ -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) {