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

Function sampleToken

packages/oauth/test/storage.test.ts:26–36  ·  view source on GitHub ↗
(overrides: Partial<TokenInfo> = {})

Source from the content-addressed store, hash-verified

24}
25
26function sampleToken(overrides: Partial<TokenInfo> = {}): TokenInfo {
27 return {
28 accessToken: 'at-abc',
29 refreshToken: 'rt-xyz',
30 expiresAt: 1_700_000_000,
31 scope: 'read write',
32 tokenType: 'Bearer',
33 expiresIn: 3600,
34 ...overrides,
35 };
36}
37
38describe('FileTokenStorage', () => {
39 let dir: string;

Callers 1

storage.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected