MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / checkToken

Method checkToken

wxapp/wb.js:243–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 }
242
243 async checkToken() {
244 try {
245 if (!this.token || !this.appOpenid) return false;
246 await this.getUser(true);
247 return true;
248 } catch (e) {
249 return false;
250 }
251 }
252
253 async getUser(silent = false) {
254 const result = await this.request("marketing/shyx/marketing/v1/cus/get-user-info", {

Callers 1

runMethod · 0.95

Calls 1

getUserMethod · 0.95

Tested by

no test coverage detected