{"record":{"id":"fd51e650dd0194d1","repo":"diegosouzapw/OmniRoute","slug":"identity-unverified-fd51e6","errorCode":"identity_unverified","errorMessage":"Could not verify the account identity (bootstrap failed and no email/accountUUID available). Pass overwriteExisting: true to import anyway.","messagePattern":"Could not verify the account identity \\(bootstrap failed and no email/accountUUID available\\)\\. Pass overwriteExisting: true to import anyway\\.","errorType":"exception","errorClass":"ClaudeAuthFileError","httpStatus":409,"severity":"error","filePath":"src/lib/oauth/utils/claudeAuthImport.ts","lineNumber":235,"sourceCode":"          bootstrapEmail: enriched.email,\n          importedAt: new Date().toISOString(),\n          // #10143: preserve an already-persisted device identity across\n          // re-imports so the connection doesn't present as a new device to\n          // Anthropic on every process restart; only mint one if absent.\n          cliUserID:\n            toNonEmptyString(toRecord(existing.providerSpecificData).cliUserID) ||\n            crypto.randomBytes(32).toString(\"hex\"),\n        },\n      });\n\n      return { connection: updated || existing, created: false };\n    }\n  }\n\n  // Identity check: when bootstrap failed and we have no email, refuse unless\n  // the caller has explicitly opted into overwrite mode (they know what they're doing).\n  if (!enriched.email && !enriched.accountUUID && !options.overwriteExisting) {\n    throw new ClaudeAuthFileError(\n      \"Could not verify the account identity (bootstrap failed and no email/accountUUID available). Pass overwriteExisting: true to import anyway.\",\n      409,\n      \"identity_unverified\"\n    );\n  }\n\n  const email = options.email || enriched.email || undefined;\n  const name = options.name || options.email || enriched.email || \"Claude (imported)\";\n\n  const connection = await createProviderConnection({\n    provider: \"claude\",\n    authType: \"oauth\",\n    name,\n    email,\n    accessToken: enriched.accessToken,\n    refreshToken: enriched.refreshToken,\n    expiresAt: enriched.expiresAt,\n    isActive: true,","sourceCodeStart":217,"sourceCodeEnd":253,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/oauth/utils/claudeAuthImport.ts#L217-L253","documentation":"Error \"Could not verify the account identity (bootstrap failed and no email/accountUUID available). Pass overwriteExisting: true to import anyway.\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/oauth/utils/claudeAuthImport.ts:235 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"}