Currently the implementation does not verify that a 200 response is received before attempting to parse the JSON response. This PR updates the behaviour to fail with an authorization error, similar to how other auth library implementations.
Currently the implementation does not verify that a 200 response is received before attempting to parse the JSON response. This PR updates the behaviour to fail with an authorization error, similar to how other auth library implementations.