Hi Shwetha,
Thanks again for your reply. I apologize if I'm missing something, but it still seems that we are not getting the correct error.
If our refresh token was invalidated (either by exceeding the limit of 25 refresh tokens or something else), then I assume that the refresh token would never succeed in getting an access token. However, that is not the behavior we see - after getting the invalid token error, later we are able to use the same refresh token, get a valid access token, and get data. Maybe it's a timing issue, but I think we should get an "expired token" error which we could then retry. I don't think it's the correct behavior to retry an invalid token error, since that should indicate if the refresh token itself is invalid.
Please let me know if I'm misunderstanding the process. And thank you again for your help in troubleshooting!
Latha