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

Function freshToken

packages/node-sdk/test/auth-facade.test.ts:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36function freshToken(): TokenInfo {
37 return {
38 accessToken: 'oauth-access-token',
39 refreshToken: 'oauth-refresh-token',
40 expiresAt: Math.floor(Date.now() / 1000) + 3600,
41 scope: '',
42 tokenType: 'Bearer',
43 expiresIn: 3600,
44 };
45}
46
47beforeEach(async () => {
48 homeDir = await mkdtemp(join(tmpdir(), 'kimi-sdk-auth-'));

Callers 1

Calls 1

nowMethod · 0.65

Tested by

no test coverage detected