MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / oauth.test.ts

File oauth.test.ts

packages/oauth/test/oauth.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * OAuth device code flow tests — pure HTTP wrappers against a fake server.
3 *
4 * Covers the three endpoint calls: requestDeviceAuthorization, pollDeviceToken,

Callers

nothing calls this directly

Calls 12

pollDeviceTokenFunction · 0.90
refreshAccessTokenFunction · 0.90
requestAuthFunction · 0.85
flowConfigFunction · 0.85
expectNoDeviceHeadersFunction · 0.85
pollTokenFunction · 0.85
refreshTokenFunction · 0.85
startMethod · 0.65
stopMethod · 0.65
enqueueMethod · 0.65
nowMethod · 0.65

Tested by

no test coverage detected