I am using the SaaS gitlab on gitlab.com. I have my own OAuth2 application which uses access tokens to access the GraphQL API and that works fine. But when I try to access the GraphQL API with a token whose app has been revoked on account or a token that is intentionally invalid, I get no indication of an error. I get a 200 response and empty data lists.
Is there some way to tell from the response that your token has expired or revoked? There seems to be no indication that something is wrong. How can I detect from GraphQL api response that it’s time for me to use the refresh token to obtain a new access token?