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

Method checkToken

wxapp/fafa.js:216–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214 }
215
216 async checkToken() {
217 try {
218 await this.getUserInfo(false);
219 return true;
220 } catch (e) {
221 return false;
222 }
223 }
224
225 async getUserInfo(log = true) {
226 const data = await this.request({

Callers 1

runMethod · 0.95

Calls 1

getUserInfoMethod · 0.95

Tested by

no test coverage detected