Nandkishor_Yadav | 2023-03-31 11:16:09 UTC | #1
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: { "accesstoken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "tokentype": "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
tim.smith | 2023-04-10 20:18:04 UTC | #2
Please open a case with Genesys Cloud Care to investigate the missing data from the auth response.
system | 2023-05-11 20:18:33 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 19245