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", }, } ), };