refresh the token when it has expired