Skip to content

V2.0.1: Auth Tweaks

Compare
Choose a tag to compare
@strideynet strideynet released this 27 Dec 19:27
· 125 commits to master since this release
1543b59

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.

#179

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.

#170