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

Method ensureLogin

wxapp/airui.js:196–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 }
195
196 async ensureLogin() {
197 if (!this.token) this.token = this.getCached().token || "";
198 if (this.token) return;
199 await this.login();
200 }
201
202 async requestWithRelogin(method, urlPath, options = {}) {
203 await this.ensureLogin();

Callers 2

requestWithReloginMethod · 0.95
runMethod · 0.95

Calls 2

getCachedMethod · 0.95
loginMethod · 0.95

Tested by

no test coverage detected