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

Function refreshToken

packages/oauth/test/oauth.test.ts:156–165  ·  view source on GitHub ↗
(
  config: OAuthFlowConfig,
  refreshTokenValue: string,
  options: Omit<RefreshOptions, 'deviceHeaders'> = {},
)

Source from the content-addressed store, hash-verified

154}
155
156function refreshToken(
157 config: OAuthFlowConfig,
158 refreshTokenValue: string,
159 options: Omit<RefreshOptions, 'deviceHeaders'> = {},
160): ReturnType<typeof refreshAccessToken> {
161 return refreshAccessToken(config, refreshTokenValue, {
162 ...options,
163 deviceHeaders: TEST_DEVICE_HEADERS,
164 });
165}
166
167beforeEach(async () => {
168 server = new FakeOAuthServer();

Callers 1

oauth.test.tsFile · 0.85

Calls 1

refreshAccessTokenFunction · 0.90

Tested by

no test coverage detected