throwIfApiKeyInvalid

Throws exception when access token is invalid