Each API endpoint now has two client interfaces, one with a context and one without.
All use of contexts for auth has been removed.
There are three simple methods for the APIClient type that register autentication credentials and there is no longer any way to supply Oauth 2 tokens. You can still supply an Oauth 2 customised HTTP client which, quite frankly, is the right way to do it.
The API client knows which credentials to send to which endpoints because that's specified in the OpenAPI input. There is no need for the developer to code that into each API call.
Each API endpoint now has two client interfaces, one with a context and one without.
All use of contexts for auth has been removed.
There are three simple methods for the APIClient type that register autentication credentials and there is no longer any way to supply Oauth 2 tokens. You can still supply an Oauth 2 customised HTTP client which, quite frankly, is the right way to do it.
The API client knows which credentials to send to which endpoints because that's specified in the OpenAPI input. There is no need for the developer to code that into each API call.