AuthSdkError: The key id was not found in the server's keys

If I refresh the key on server but still on client it cached in memory and if I tried to login it uses old key and throws me this error: AuthSdkError: The key id was not found in the server’s keys.

How can I identify server key has been refreshed before expiry and get client side key updated.