| 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 | |
| 607 | class SpotifyPKCE(SpotifyAuthBase): |