At the moment, if we get an error from AzureAuth and not a JSON, we throw an irrelevant error saying "Encountered error while performing auth Error: Unexpected end of JSON input", this PR fixes that and throws the actual string we received.
I'm hesitating whether we should assert on something specific there inside the catch to make sure we're not printing tokens. Any thoughts?
At the moment, if we get an error from AzureAuth and not a JSON, we throw an irrelevant error saying "Encountered error while performing auth Error: Unexpected end of JSON input", this PR fixes that and throws the actual string we received.
I'm hesitating whether we should assert on something specific there inside the
catch
to make sure we're not printing tokens. Any thoughts?