handle api register & change design dashboard tabs and page disease
This commit is contained in:
+14
-15
@@ -11,20 +11,19 @@ export const request = {
|
||||
},
|
||||
}
|
||||
),
|
||||
getToken: (grant_type, client_id, client_secret, mobile_number, code) =>
|
||||
api.post(
|
||||
"oauth/token",
|
||||
{
|
||||
grant_type,
|
||||
client_id,
|
||||
client_secret,
|
||||
mobile_number,
|
||||
code,
|
||||
getToken: (grant_type, client_id, client_secret, mobile_number, code) => {
|
||||
const formData = new URLSearchParams();
|
||||
formData.append("grant_type", grant_type);
|
||||
formData.append("client_id", client_id);
|
||||
formData.append("client_secret", client_secret);
|
||||
formData.append("mobile_number", mobile_number);
|
||||
formData.append("code", code);
|
||||
|
||||
return api.post("oauth/token", formData, {
|
||||
headers: {
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
Authorization: "",
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
Authorization: "",
|
||||
},
|
||||
}
|
||||
),
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user