Hi @Aranict,
Welcome to the Auth0 Community!
This is an acceptable approach if you want to close your user session when the ID token expires.
If you want to keep the session active (i.e., close it only when the user explicitly logs out), you can call the RefreshTokenAsync()
method to refresh all the tokens.
The article focuses on refreshing access tokens, but it also applies to ID tokens