Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
requestDeviceAuthorization
Function · 0.90
pollDeviceToken
Function · 0.90
refreshAccessToken
Function · 0.90
requestAuth
Function · 0.85
flowConfig
Function · 0.85
expectNoDeviceHeaders
Function · 0.85
pollToken
Function · 0.85
refreshToken
Function · 0.85
start
Method · 0.65
stop
Method · 0.65
enqueue
Method · 0.65
now
Method · 0.65
Tested by
no test coverage detected