You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <[email protected]>
0 commit comments