How to make sure that the refresh token has not expired

How to make sure that the refresh token has not expired

I know that refresh token lives forever, but i can revoke it, so the question is how to verify that the refresh token is valid  without creating access tokens.
For example, as in HubSpot https://legacydocs.hubspot.com/docs/methods/oauth2/get-refresh-token-information​​​​