hello i am trying to integrate Monday to my chrome extension, I am receiving the auth code and when i request token in exchange for the auth code i am receiving code 500
can someone point me to the right direction
some of the code I am using
let code = url.substring(url.indexOf(“code=”) + “code=”.length);
code = code.substring(0, code.indexOf(“&”));
const requestTokenUrl = new URL("https://auth.monday.com/oauth2/token");
const params = { code, client_id:MONDAY_CLIENT_ID ,client_secret:CLIENT_SECRET};
requestTokenUrl.search = new URLSearchParams(params).toString();
axios.get(requestTokenUrl.toString()).then((res)=>{
console.log(res.data)
});