Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: error checking for initial API token call (#1080)
## Description If the API token is invalid or expired, the current implementation does not return that error to inform the end user. This implementation adds error checking, returns that error and then does not continue. This should make debugging much easier compared to it's current state. From my research there are two possible error formats. First error response: 401 unauthorized {"message":"401 Unauthorized"} Second possible error response: Token has expired {"error":"invalid_token","error_description":"Token is expired. You can either do re-authorization or token refresh."} ## Migrations required None ## Verification Provide a bad or expired API token to the module. It should fail and output the reason for failure. --------- Co-authored-by: Matthias Kay <matthias.kay@hlag.com>
- Loading branch information