def get_cached_token(self):
        """ Gets the cached token for the app

            .. deprecated::
            This method is deprecated and may be removed in a future version.
        """
        warnings.warn("Calling get_cached_token directly on the SpotifyImplicitGrant " +
                      "object will be deprecated. Instead, please specify a " +
                      "CacheFileHandler instance as the cache_handler in SpotifyOAuth " +
                      "and use the CacheFileHandler's get_cached_token method. " +
                      "You can replace:\n\tsp.get_cached_token()" +
                      "\n\nWith:\n\tsp.validate_token(sp.cache_handler.get_cached_token())",
                      DeprecationWarning
                      )
        return self.validate_token(self.cache_handler.get_cached_token())
 Gets the cached token for the app

            .. deprecated::
            This method is deprecated and may be removed in a future version.
        
spotipy/oauth2.py