Check and refresh the token