V2.0.1: Auth Tweaks
This release includes no breaking API changes. There is 1 change that users should be aware of, and let me know if they experience any changes in behaviour (#179). We no longer override the HTTP client used for oauth, and this means it will now use the default Go HTTP client. If you environment includes variables that control the configuration of this client, you may experience changes in behaviour.
Changes
Revert to default HTTP client for oauth
Originally, Spotify's API did not work properly with HTTP/2, so we overrode the client here to ensure that we would not attempt to use HTTP/2. It appears this is now correctly supported, so this override is redundant.
Many thanks to @StalkR for this change.
Introduce a method for getting the current API token
The client now includes a .Token()
method for returning the current token being used.
Many thanks to @elivlo for this change.