Api gets new token if token is invalid or expired.