diegosouzapw/OmniRoute · error · CodexDeviceFlowError
aborted
aborted
Error message
Device flow aborted
What it means
Error "Device flow aborted" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/oauth/codexDeviceFlow.ts:95
refresh_token: string;
id_token: string;
expires_in: number;
}
interface RunOptions {
/** Public Codex CLI client id; defaults to the embedded public value. */
clientId?: string;
/** Called once the user code is obtained, so the UI can display / copy / open it. */
onUserCode?: (userCode: CodexUserCode) => void;
/** Abort the flow (e.g. modal closed). */
signal?: AbortSignal;
/** Override the overall timeout (defaults to 15 minutes). */
timeoutMs?: number;
}
function throwIfAborted(signal?: AbortSignal): void {
if (signal?.aborted) {
throw new CodexDeviceFlowError("aborted", "Device flow aborted");
}
}
function delay(ms: number, signal?: AbortSignal): Promise<void> {
return new Promise((resolve, reject) => {
const timer = setTimeout(() => {
cleanup();
resolve();
}, ms);
const onAbort = () => {
cleanup();
reject(new CodexDeviceFlowError("aborted", "Device flow aborted"));
};
function cleanup() {
clearTimeout(timer);
signal?.removeEventListener("abort", onAbort);
}
if (signal) {View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/oauth/codexDeviceFlow.ts:95 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/12758652ce0129a5.
Report an issue: GitHub.