Refresh the offline token
Offline tokens expire after 30 days of inactivity. You can keep your offline token from expiring by refreshing it periodically.
About this task
Refreshing the offline token to keep it active is useful when an application performs an action on behalf of the user. For example, this allows the application to perform a routine data backup when the user is offline.
If your offline token expires, you must obtain a new one.
Procedure
curl https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token -d grant_type=refresh_token -d client_id="cloud-services" -d refresh_token="{{ user_token }}" --fail --silent --show-error --output /dev/null