MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isOAuthTokenRevokedError

Function isOAuthTokenRevokedError

src/services/api/withRetry.ts:623–629  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

621}
622
623function isOAuthTokenRevokedError(error: unknown): boolean {
624 return (
625 error instanceof APIError &&
626 error.status === 403 &&
627 (error.message?.includes('OAuth token has been revoked') ?? false)
628 )
629}
630
631function isBedrockAuthError(error: unknown): boolean {
632 if (isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK)) {

Callers 2

withRetryFunction · 0.85
shouldRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected