Determine if refresh token has expired

Hi auth0 team!

How can we determine if our stored credential’s refresh token has expired? I have found that getCredentials will throw the error RENEW_FAILED: An error occurred while trying to use the Refresh Token to renew the Credentials when the refresh token is expired; is that error specific to refresh token expiry?

We want to log and treat refresh token expiry separate to a legitimate error. From what I can tell the credentials expiresAt is for the access token, not the refresh token. If it helps this is a react native app using the react-native-auth0 sdk.

Thanks in advance :slight_smile: