We are facing an issue related to the Freshdesk OAuth access token regeneration automatically. We are able to authorize the user via OAuth and access the application APIs working properly with access_token. However, the access token expires in a certain period and unfortunately, the app does not regenerate the access token automatically using the refresh_token.
Details:
-
Agent-based auth ( tried as both account and collaborator)
-
OAuthConfig.json - screenshot shared
-
Documentation link to the AWS Cognito (Token endpoint - Amazon Cognito)
-
Error messages received
{
"errors": [
{
"message": "Invalid token",
"locations": [
{
"line": 1,
"column": 29
}
],
"path": [
"getOrderData"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"response": "App Exception",
"status": 401,
"message": "Invalid token",
"name": "AppException",
"statusCode": 401,
"stacktrace": [
"AppException: Invalid token",
"REDACTED"
]
}
}
}
],
"data": {
"getOrderData": null
}
}
- the expiration for the access token from the respective third-party resource owner - 3600 seconds
- It requires nothing additional to refresh the token after the access token expiry.
- It uses the Graphql and running the APIs locally
- fdk logs attached fdk.log (204.6 KB)
- network screenshot
- Manifest.json
Can you please help me resolve the issue?