{"record":{"id":"b721a4a8d238db1a","repo":"diegosouzapw/OmniRoute","slug":"missing-refresh-token-b721a4","errorCode":"missing_refresh_token","errorMessage":"refresh_token is missing or empty in the auth.json","messagePattern":"refresh_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":148,"sourceCode":"\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) {\n    throw new CodexAuthFileError(\n      \"Unable to derive account_id from the auth.json tokens\",\n      400,\n      \"missing_account_id\"\n    );\n  }\n\n  return {","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/oauth/utils/codexAuthImport.ts#L130-L166","documentation":"Error \"refresh_token is missing or empty in the auth.json\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/oauth/utils/codexAuthImport.ts:148 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"}