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

Method is_token_expired

spotipy/oauth2.py:93–95  ·  view source on GitHub ↗
(token_info)

Source from the content-addressed store, hash-verified

91
92 @staticmethod
93 def is_token_expired(token_info):
94 now = int(time.time())
95 return token_info["expires_at"] - now < 60
96
97 @staticmethod
98 def _is_scope_subset(needle_scope, haystack_scope):

Callers 7

get_access_tokenMethod · 0.80
validate_tokenMethod · 0.80
get_access_tokenMethod · 0.80
validate_tokenMethod · 0.80
get_access_tokenMethod · 0.80
validate_tokenMethod · 0.80
get_access_tokenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected