Recently, I've been facing an issue while trying to authenticate my app with Slack. Everything was running smoothly for a few days until it started showing me an error message
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))
The server responded with:
{ ok: false, error: 'invalid_code' }
The code I received looks something like this:
code=303414024726.805164905556.526d546072e9b2408e0743f42ca3bb5843553a6c3b930b1de2c1e31847b25448
I believe this code is in JWT token format, but I'm unsure. Any assistance on this matter would be highly appreciated.