If an Org Auth Token's payload defines an empty but not null url, then we should prefer the url provided as a command line argument via --url. The current behavior is to raise an error that the two urls don't match, which makes little sense, given that an empty url in the org Auth Token likely indicates a misconfigured Sentry self-hosted instance, and most users would expect the --url to take precedence.
With this change, we would prevent situations like the following: getsentry/sentry-javascript-bundler-plugins#465
If an Org Auth Token's payload defines an empty but not null
url, then we should prefer the url provided as a command line argument via--url. The current behavior is to raise an error that the two urls don't match, which makes little sense, given that an empty url in the org Auth Token likely indicates a misconfigured Sentry self-hosted instance, and most users would expect the--urlto take precedence.With this change, we would prevent situations like the following: getsentry/sentry-javascript-bundler-plugins#465