| 963 | return self.validate_token(self.cache_handler.get_cached_token()) |
| 964 | |
| 965 | def _save_token_info(self, token_info): |
| 966 | warnings.warn("Calling _save_token_info directly on the SpotifyOAuth object will be " + |
| 967 | "deprecated. Instead, please specify a CacheFileHandler instance as " + |
| 968 | "the cache_handler in SpotifyOAuth and use the CacheFileHandler's " + |
| 969 | "save_token_to_cache method.", |
| 970 | DeprecationWarning |
| 971 | ) |
| 972 | self.cache_handler.save_token_to_cache(token_info) |
| 973 | return None |
| 974 | |
| 975 | |
| 976 | class SpotifyImplicitGrant(SpotifyAuthBase): |