Files
nobat724_front/services/response.js
T

23 lines
459 B
JavaScript

import api from "./api";
import Cookies from "universal-cookie";
export const request = {
auth: (grant_type, client_id, client_secret, username, password) =>
api.post(
"oauth/token",
{
grant_type,
client_id,
client_secret,
username,
password,
},
{
headers: {
Authorization: "",
"Content-Type": "application/x-www-form-urlencoded",
},
}
),
};