{"record":{"id":"ee024529b95b5519","repo":"diegosouzapw/OmniRoute","slug":"access-token-missing-ee0245","errorCode":"access_token_missing","errorMessage":"Codex connection is missing access_token. Refresh or re-authenticate this account first.","messagePattern":"Codex connection is missing access_token\\. Refresh or re-authenticate this account first\\.","errorType":"exception","errorClass":"CodexAuthFileError","httpStatus":409,"severity":"error","filePath":"src/lib/oauth/utils/codexAuthFile.ts","lineNumber":162,"sourceCode":"\n  return normalized || \"account\";\n}\n\nfunction buildCodexAuthPayload(connection: CodexConnectionLike): CodexAuthFilePayload {\n  const idToken = toNonEmptyString(connection.idToken);\n  const accessToken = toNonEmptyString(connection.accessToken);\n  const refreshToken = toNonEmptyString(connection.refreshToken);\n\n  if (!idToken) {\n    throw new CodexAuthFileError(\n      \"Codex connection is missing id_token. Re-authenticate this account before exporting.\",\n      409,\n      \"reauth_required\"\n    );\n  }\n\n  if (!accessToken) {\n    throw new CodexAuthFileError(\n      \"Codex connection is missing access_token. Refresh or re-authenticate this account first.\",\n      409,\n      \"access_token_missing\"\n    );\n  }\n\n  if (!refreshToken) {\n    throw new CodexAuthFileError(\n      \"Codex connection is missing refresh_token. Re-authenticate this account before exporting.\",\n      409,\n      \"reauth_required\"\n    );\n  }\n\n  const accountId = extractCodexAccountId(idToken, connection.providerSpecificData);\n  if (!accountId) {\n    throw new CodexAuthFileError(\n      \"Unable to derive Codex account_id from the stored session. Re-authenticate this account.\",","sourceCodeStart":144,"sourceCodeEnd":180,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/oauth/utils/codexAuthFile.ts#L144-L180","documentation":"Error \"Codex connection is missing access_token. Refresh or re-authenticate this account first.\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/oauth/utils/codexAuthFile.ts:162 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}