MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / pickErrorDetail

Function pickErrorDetail

packages/oauth/src/oauth.ts:25–27  ·  view source on GitHub ↗
(data: Record<string, unknown>)

Source from the content-addressed store, hash-verified

23const RETRYABLE_STATUSES = new Set([429, 500, 502, 503, 504]);
24
25function pickErrorDetail(data: Record<string, unknown>): string {
26 return extractApiErrorMessage(data) ?? 'unknown';
27}
28
29function tokenFromResponse(payload: Record<string, unknown>): TokenInfo {
30 // Required-field validation. Reject responses that are missing

Callers 2

pollDeviceTokenFunction · 0.85

Calls 1

extractApiErrorMessageFunction · 0.90

Tested by

no test coverage detected