mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-04 22:32:12 +03:00
chore: remove unused codex auth input type (#5388)
Integrated into release/v3.8.42
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user