Handle invalid token errors and get a new token