()
| 428 | } |
| 429 | |
| 430 | export async function ensureValidToken(): Promise<string> { |
| 431 | const auth = await Auth.get("codex") |
| 432 | if (!auth || auth.type !== "codex") { |
| 433 | throw new Error("Codex token not available") |
| 434 | } |
| 435 | return ensureValidTokenFor("codex", auth) |
| 436 | } |
| 437 | } |
no test coverage detected