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

Method checkToken

wxapp/bluedash.js:182–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 }
181
182 async checkToken() {
183 try {
184 await this.getUser();
185 return true;
186 } catch (e) {
187 return false;
188 }
189 }
190
191 async getUser() {
192 const data = await this.request({ apiPath: "/app-api/member/user/get" });

Callers 1

runMethod · 0.95

Calls 1

getUserMethod · 0.95

Tested by

no test coverage detected