MCPcopy Create free account
hub / github.com/IIIIQIIII/claude-code / isOAuthTokenRevokedError

Function isOAuthTokenRevokedError

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

Source from the content-addressed store, hash-verified

617}
618
619function isOAuthTokenRevokedError(error: unknown): boolean {
620 return (
621 error instanceof APIError &&
622 error.status === 403 &&
623 (error.message?.includes('OAuth token has been revoked') ?? false)
624 )
625}
626
627function isBedrockAuthError(error: unknown): boolean {
628 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