MCPcopy Create free account
hub / github.com/msgbyte/tailchat / getToken

Method getToken

server/plugins/com.msgbyte.getui/lib/GetuiClient.ts:95–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 }
94
95 async getToken(): Promise<string> {
96 if (!this.token || Date.now() > this.expireTime) {
97 // 如果token不存在或者token过期
98 await this.fetchToken();
99 }
100
101 return this.token;
102 }
103
104 async singlePush(
105 userId: string,

Callers 2

singlePushMethod · 0.95
allPushMethod · 0.95

Calls 1

fetchTokenMethod · 0.95

Tested by

no test coverage detected