MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / checkToken

Method checkToken

wxapp/roki.js:243–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 }
242
243 async checkToken() {
244 try {
245 await this.getUserInfo(false);
246 return true;
247 } catch (e) {
248 return false;
249 }
250 }
251
252 async getUserInfo(needLog = true) {
253 const result = await this.request({ apiPath: "/user/profile" });

Callers 1

runMethod · 0.95

Calls 1

getUserInfoMethod · 0.95

Tested by

no test coverage detected