Load saved OAuth tokens, or *None* if not logged in.
()
| 224 | |
| 225 | |
| 226 | def load_tokens() -> dict[str, Any] | None: |
| 227 | """Load saved OAuth tokens, or *None* if not logged in.""" |
| 228 | data = _read_encrypted(_base_dir() / "auth.json") |
| 229 | if data and "access_token" in data: |
| 230 | return data |
| 231 | return None |
| 232 | |
| 233 | |
| 234 | def save_tokens(tokens: dict[str, Any]) -> None: |
no test coverage detected