Dealing with a very strange bug here with the /api/v2/oauth/token endpoint during token refresh for a multi-org premium app. The initial authorization code grant succeeds, but the refresh token request fails immediately after 5 minutes.
- Generate auth code via
https://login.mypurecloud.com/oauth/authorize - Exchange code for access/refresh tokens
- Wait 300 seconds
- POST to
/api/v2/oauth/tokenwithgrant_type=refresh_token
The response returns 401 Unauthorized with error: invalid_grant. The client secret is correct and the scopes match. Is there a known issue with refresh token validity in the EU-West-1 region?