MCPcopy
hub / github.com/opentrace/opentrace / save_org_token

Function save_org_token

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

Persist an org-scoped access token (encrypted).

(org_id: str, tokens: dict[str, Any])

Source from the content-addressed store, hash-verified

273
274
275def save_org_token(org_id: str, tokens: dict[str, Any]) -> None:
276 """Persist an org-scoped access token (encrypted)."""
277 _write_encrypted(_org_tokens_dir() / f"{org_id}.json", tokens)
278
279
280def clear_org_tokens() -> int:

Calls 2

_write_encryptedFunction · 0.85
_org_tokens_dirFunction · 0.85