From 71a19de0315634713fc5b949be539195dd7d3392 Mon Sep 17 00:00:00 2001 From: rako77 Date: Sun, 26 Apr 2020 13:39:12 -0700 Subject: [PATCH] Added a method to update the auth token (#479) * Added a method to update the auth token * trying to fix errors --- CHANGELOG.md | 2 ++ spotipy/client.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 461a75a..cba9962 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 // add new changes here + - Added a method to update the auth token. + ## [2.11.2] - 2020-04-19 ### Changed diff --git a/spotipy/client.py b/spotipy/client.py index af07dc0..b98153d 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -101,6 +101,9 @@ class Spotify(object): else: # Use the Requests API module as a "session". self._session = requests.api + def set_auth(self, auth): + self._auth = auth + @property def auth_manager(self): return self._auth_manager