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

Function freshToken

packages/node-sdk/test/session-set-model.test.ts:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10const tempDirs: string[] = [];
11
12function freshToken(): TokenInfo {
13 return {
14 accessToken: 'oauth-access-token',
15 refreshToken: 'oauth-refresh-token',
16 expiresAt: Math.floor(Date.now() / 1000) + 3600,
17 scope: '',
18 tokenType: 'Bearer',
19 expiresIn: 3600,
20 };
21}
22
23afterEach(async () => {
24 await removeTempDirs(tempDirs);

Callers 1

Calls 1

nowMethod · 0.65

Tested by

no test coverage detected