import axios from "axios";
axios.defaults.baseURL = 'https://login.microsoftonline.com/caterpillar.onmicrosoft.com'
axios.defaults.timeout = 5000;
// axios.defaults.withCredentials = true

const postToGetToken = (params) => {
    return axios({
        url: '/oauth2/v2.0/token',
        method: 'post',
        data: params,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}

export {
    postToGetToken
}