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

Function makeToken

packages/oauth/test/oauth-manager.test.ts:48–58  ·  view source on GitHub ↗
(overrides: Partial<TokenInfo> = {})

Source from the content-addressed store, hash-verified

46};
47
48function makeToken(overrides: Partial<TokenInfo> = {}): TokenInfo {
49 return {
50 accessToken: 'at-1',
51 refreshToken: 'rt-1',
52 expiresAt: 2_000_000_000, // far future
53 scope: '',
54 tokenType: 'Bearer',
55 expiresIn: 3600,
56 ...overrides,
57 };
58}
59
60let currentNow = 1_000_000_000;
61function now(): number {

Callers 2

pollImplFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected