{"record":{"id":"0f2dcf232fc1ae30","repo":"diegosouzapw/OmniRoute","slug":"missing-access-token-0f2dcf","errorCode":"missing_access_token","errorMessage":"access_token is missing or empty in the auth.json","messagePattern":"access_token is missing or empty in the auth\\.json","errorType":"exception","errorClass":"CodexAuthFileError","httpStatus":400,"severity":"error","filePath":"src/lib/oauth/utils/codexAuthImport.ts","lineNumber":140,"sourceCode":"      \"invalid_auth_file\"\n    );\n  }\n\n  const tokens = toRecord(doc.tokens);\n  const idToken = toNonEmptyString(tokens.id_token);\n  const accessToken = toNonEmptyString(tokens.access_token);\n  const refreshToken = toNonEmptyString(tokens.refresh_token);\n\n  if (!idToken) {\n    throw new CodexAuthFileError(\n      \"id_token is missing or empty in the auth.json\",\n      400,\n      \"missing_id_token\"\n    );\n  }\n\n  if (!accessToken) {\n    throw new CodexAuthFileError(\n      \"access_token is missing or empty in the auth.json\",\n      400,\n      \"missing_access_token\"\n    );\n  }\n\n  if (!refreshToken) {\n    throw new CodexAuthFileError(\n      \"refresh_token is missing or empty in the auth.json\",\n      400,\n      \"missing_refresh_token\"\n    );\n  }\n\n  const tokensAccountId = toNonEmptyString(tokens.account_id) ?? undefined;\n  const accountId = extractCodexAccountId(idToken, tokensAccountId);\n\n  if (!accountId) {","sourceCodeStart":122,"sourceCodeEnd":158,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/oauth/utils/codexAuthImport.ts#L122-L158","documentation":"Error \"access_token is missing or empty in the auth.json\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/oauth/utils/codexAuthImport.ts:140 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"}