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

Function tokenToWire

packages/oauth/src/types.ts:67–76  ·  view source on GitHub ↗
(token: TokenInfo)

Source from the content-addressed store, hash-verified

65}
66
67export function tokenToWire(token: TokenInfo): TokenInfoWire {
68 return {
69 access_token: token.accessToken,
70 refresh_token: token.refreshToken,
71 expires_at: token.expiresAt,
72 scope: token.scope,
73 token_type: token.tokenType,
74 expires_in: token.expiresIn,
75 };
76}
77
78export function tokenFromWire(wire: Partial<TokenInfoWire>): TokenInfo {
79 return {

Callers 1

saveMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected