Skip to content

Instantly share code, notes, and snippets.

@haruiz
Created March 27, 2017 08:06
Embed
What would you like to do?
const axios = require("axios");
module.exports = {
getToken : async(apikey)=>{
var config = {
headers: {'Ocp-Apim-Subscription-Key': apikey}
};
return axios.post("https://api.cognitive.microsoft.com/sts/v1.0/issueToken",{}, config);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment