MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / read_token_cache

Function read_token_cache

wxapp/BREO.py:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30session = requests.Session()
31
32def read_token_cache():
33 try:
34 if not TOKEN_CACHE_PATH.exists():
35 return {}
36 return json.loads(TOKEN_CACHE_PATH.read_text(encoding="utf-8")) or {}
37 except Exception:
38 return {}
39
40def write_token_cache(cache):
41 try:

Callers 3

get_cached_tokenFunction · 0.85
save_cached_tokenFunction · 0.85
remove_cached_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected