chore: remove unused codex auth input type (#5388)

Integrated into release/v3.8.42
This commit is contained in:
Jan Leon
2026-06-30 00:14:45 +02:00
committed by GitHub
parent 2c8f9c594f
commit b52bb6d2c4
2 changed files with 7 additions and 12 deletions

View File

@@ -56,18 +56,6 @@ function extractCodexAccountId(
// ──── Public types ────────────────────────────────────────────────────────────
export interface CodexAuthFileInput {
auth_mode?: unknown;
OPENAI_API_KEY?: unknown;
tokens?: {
id_token?: unknown;
access_token?: unknown;
refresh_token?: unknown;
account_id?: unknown;
};
last_refresh?: unknown;
}
export interface ParsedCodexAuth {
idToken: string;
accessToken: string;

View File

@@ -87,6 +87,13 @@ test("Fix C reverted: codexAuthImport does NOT refresh tokens on import (avoids
);
});
test("codexAuthImport public surface keeps only consumed auth import types", async () => {
const src = await read("src/lib/oauth/utils/codexAuthImport.ts");
assert.doesNotMatch(src, /export interface CodexAuthFileInput\b/);
assert.match(src, /export interface ParsedCodexAuth\b/);
assert.match(src, /export interface CreateConnectionOptions\b/);
});
test("Fix D: staleness fallback returns absolute expiresAt, not raw expiresIn", async () => {
const src = await read("open-sse/services/tokenRefresh.ts");
// Locate the actual return statement, not the JSDoc mention.