convertir aller à Axios
fetch(`https://discord.com/api/oauth2/token`, {
method: "POST",
body: params
}).then(response => response.json()).then(data => {
axios.get("https://discord.com/api/users/@me", make_config(data.access_token)).then(response => {
console.log(data.access_token)
res.status(200).send(response.data);
}).catch(err => {
console.log(err);
res.sendStatus(500);
});
});fetch(`https://discord.com/api/oauth2/token`, {
method: "POST",
body: params
}).then(response => response.json()).then(data => {
axios.get("https://discord.com/api/users/@me", make_config(data.access_token)).then(response => {
console.log(data.access_token)
res.status(200).send(response.data);
}).catch(err => {
console.log(err);
res.sendStatus(500);
});
});
Quest The