MCPcopy
hub / github.com/spotipy-dev/spotipy / _save_token_info

Method _save_token_info

spotipy/oauth2.py:596–604  ·  view source on GitHub ↗
(self, token_info)

Source from the content-addressed store, hash-verified

594 return self.validate_token(self.cache_handler.get_cached_token())
595
596 def _save_token_info(self, token_info):
597 warnings.warn("Calling _save_token_info directly on the SpotifyOAuth object will be " +
598 "deprecated. Instead, please specify a CacheFileHandler instance as " +
599 "the cache_handler in SpotifyOAuth and use the CacheFileHandler's " +
600 "save_token_to_cache method.",
601 DeprecationWarning
602 )
603 self.cache_handler.save_token_to_cache(token_info)
604 return None
605
606
607class SpotifyPKCE(SpotifyAuthBase):

Callers 1

Calls 1

save_token_to_cacheMethod · 0.45

Tested by 1