I am trying to authenticate my app with Slack. It was working perfectly fine for a few days, but now it's throwing me an error
invalid_code
const requestBody = qs.stringify({
code: code,
redirect_uri: redirect_uri,
client_id: client_id,
client_secret: client_secret
});
await axios
.post(url, requestBody, config).
then(server => console.log(server)).catch(err => console.log(err))
Response from server:
{ ok: false, error: 'invalid_code' }
The code I get is in this format.
code=303414024726.805164905556.526d546072e9b2408e0743f42ca3bb5843553a6c3b930b1de2c1e31847b25448
I think this is JWT token but I am not sure.
Any help would be appreciated.
invalid_code
error? – Kendall