diegosouzapw/OmniRoute · error · ClaudeAuthFileError
access_token_missing
access_token_missing
Error message
Claude connection is missing access_token. Refresh or re-authenticate this account first.
What it means
Error "Claude connection is missing access_token. Refresh or re-authenticate this account first." thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/lib/oauth/utils/claudeAuthFile.ts:127
return normalized || "account";
}
export function extractClaudeEmail(connection: ClaudeConnectionLike): string | null {
const psd = toRecord(connection.providerSpecificData);
return (
toNonEmptyString(psd.bootstrapEmail) ||
toNonEmptyString(connection.email) ||
toNonEmptyString(connection.displayName)
);
}
export function buildClaudeAuthPayload(connection: ClaudeConnectionLike): ClaudeAuthFilePayload {
const accessToken = toNonEmptyString(connection.accessToken);
const refreshToken = toNonEmptyString(connection.refreshToken);
if (!accessToken) {
throw new ClaudeAuthFileError(
"Claude connection is missing access_token. Refresh or re-authenticate this account first.",
409,
"access_token_missing"
);
}
if (!refreshToken) {
throw new ClaudeAuthFileError(
"Claude connection is missing refresh_token. Re-authenticate this account before exporting.",
409,
"reauth_required"
);
}
// expiresAt in DB is ISO string; the file format expects ms epoch
const expiresAtMs = connection.expiresAt ? new Date(connection.expiresAt).getTime() : 0;
const psd = toRecord(connection.providerSpecificData);View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/lib/oauth/utils/claudeAuthFile.ts:127 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Authentication and authorization failures — expired tokens, bad credentials, and missing scopes.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/f484afdcf05e2bf3.
Report an issue: GitHub.