Hi, I am trying to obtain OAuth access token according to the documentation Authentication | The Things Stack for LoRaWAN .
After obtaining authorization code, I’m trying to use it to obtain OAuth access token.
After posting the request I got a response with 403 status code with body:
{
"code": 7,
"message": "error:pkg/oauth:invalid_grant (invalid, expired or revoked authorization code)",
"details": [
{
"@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
"namespace": "pkg/oauth",
"name": "invalid_grant",
"message_format": "invalid, expired or revoked authorization code",
"code": 7
}
]
}