Refresh token returning null in .NET SDK

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

Please open a case with Genesys Cloud Care to investigate the missing data from the auth response.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.