MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / get_auth

Function get_auth

tests/src/util/keyhandler.py:69–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68
69def get_auth() -> dict[str, Any]:
70 try:
71 _auth = _decrypt_dict(tomllib.load(_auth_fp.open("rb")))
72 except Exception:
73 _auth = {}
74
75 _local_auth = tomllib.load(_local_auth_fp.open("rb")) if _local_auth_fp.exists() else {}
76
77 _cached_auth = _auth | _local_auth
78
79 return _cached_auth
80
81
82def mask_all():

Callers 5

mask_allFunction · 0.85
vercel_authFunction · 0.85
credentials_availableFunction · 0.85
sessionFunction · 0.85
teacher_sessionFunction · 0.85

Calls 1

_decrypt_dictFunction · 0.85

Tested by

no test coverage detected