MCPcopy
hub / github.com/opentrace/opentrace / save_tokens

Function save_tokens

agent/src/opentrace_agent/cli/credentials.py:234–236  ·  view source on GitHub ↗

Persist OAuth tokens with encryption.

(tokens: dict[str, Any])

Source from the content-addressed store, hash-verified

232
233
234def save_tokens(tokens: dict[str, Any]) -> None:
235 """Persist OAuth tokens with encryption."""
236 _write_encrypted(_base_dir() / "auth.json", tokens)
237
238
239def clear_tokens() -> bool:

Callers 13

refreshFunction · 0.90
loginFunction · 0.90
test_resolve_http_401Function · 0.90
test_resolve_http_404Function · 0.90
test_whoami_otuat_tokenFunction · 0.90
test_whoami_legacy_otoatFunction · 0.90
test_whoami_org_cachedFunction · 0.90

Calls 2

_write_encryptedFunction · 0.85
_base_dirFunction · 0.85