Hi, we have an API proxy where token details are being retrieved. However, when sending the same request of the same payload multiple times, this error would occur.
"keymanagement.service.invalid_access_token"
this is even though, this is a valid token since in the succeeding request, it would be a success as seen below.
Why is this happening though?, its just that I was expecting this to be perfectly working and not randomly throw random invalid token error even if the actual token is valid. The code for this, policy that errors out is below.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GetOAuthV2Info async="false" continueOnError="false" enabled="true" name="OAG-GetAccessTokenDetails">
<AccessToken ref="ExtractedAccessToken"/>
<IgnoreAccessTokenStatus>true</IgnoreAccessTokenStatus>
</GetOAuthV2Info>
Is there a code snippet that I need to add above for it to reliably get the details of a token?. TIA

