Hi,
I am implementing the Code Authorization Grant flow using the .NET SDK. However, the following code is not returning a refresh_token
in the response, which is causing an invalid_request
error when requesting a new token after the initial token has expired:
AuthTokenInfo accessTokenInfo = Configuration.Default.ApiClient.PostToken(ClientId, ClientSecret, RedirectURI, code);
The response I am receiving is:
{
"access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"token_type": "bearer",
"expires_in": 298
}
However, when I tried the same code with a different OAuth client Id and Client Secret from a completely different organization, it worked fine and I received a response with a refresh_token
.
Could you please assist me in resolving this issue?
Thanks