Unknown or invalid refresh token before refreh token expires in mobile app

I get this error: “Unknown or invalid refresh token.” in two scenario’s.

  1. when the refresh token is actually expired (as per set in dashboard)
  2. When a old refresh token is used to generate a new access token. (refresh token rotation is enabled.)

In second case i don’t know how SDK is create a API request(to generate a new access token) with old refresh token, because SDK is dealing with refresh token.

Is there any way to detect the actual refresh token expiry?

Hey there @ameetkumar_mandala !

As far as I’m aware there isn’t a way to check the expiry time of a refresh token - Basically if there is an error, it’s likely expired (due to absolute expiration being set w/ rotation) and the user is required to re-authenticate.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.