MCPcopy Create free account
hub / github.com/mlco2/codecarbon / _load_credentials

Function _load_credentials

codecarbon/cli/auth.py:93–96  ·  view source on GitHub ↗

Load OAuth tokens from the local credentials file.

()

Source from the content-addressed store, hash-verified

91
92
93def _load_credentials():
94 """Load OAuth tokens from the local credentials file."""
95 with open(_CREDENTIALS_FILE, "r") as f:
96 return json.load(f)
97
98
99# ── Token validation & refresh ──────────────────────────────────────

Callers 2

get_access_tokenFunction · 0.85
get_id_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…