mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
Revert "Remove unnecessary token_info parameter for oauth2.SpotifyClientCredentials methods (#223)" (#417)
This reverts commit 908a92897b.
This commit is contained in:
parent
908a92897b
commit
c3bad99e43
@ -94,15 +94,14 @@ class SpotifyClientCredentials(object):
|
|||||||
token_info = response.json()
|
token_info = response.json()
|
||||||
return token_info
|
return token_info
|
||||||
|
|
||||||
def is_token_expired(self):
|
def is_token_expired(self, token_info):
|
||||||
return is_token_expired(self.token_info)
|
return is_token_expired(token_info)
|
||||||
|
|
||||||
def _add_custom_values_to_token_info(self):
|
def _add_custom_values_to_token_info(self, token_info):
|
||||||
"""
|
"""
|
||||||
Store some values that aren't directly provided by a Web API
|
Store some values that aren't directly provided by a Web API
|
||||||
response.
|
response.
|
||||||
"""
|
"""
|
||||||
token_info = self.token_info
|
|
||||||
token_info['expires_at'] = int(time.time()) + token_info['expires_in']
|
token_info['expires_at'] = int(time.time()) + token_info['expires_in']
|
||||||
return token_info
|
return token_info
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user