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

Method jwt

daily/ydyp.js:4087–4092  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4085 return this.api.ssoForPortal()
4086 }
4087 async jwt() {
4088 const e = await this.ssoForMCloud() || await this.ssoForPortal();
4089 if (!e) return this.log("获取 ssoToken 失败"), !1;
4090 const t = await this.api.fetchJwt(e);
4091 return t && 0 === t.code ? (this.jwtHeaders.jwtToken = t.result.token, this.cookies.jwtToken = t.result.token, this.log("jwtToken 获取成功"), !0) : (this.log(`获取 jwtToken 失败: ${t?.msg||"未知错误"}`), !1)
4092 }
4093 async signinStatus() {
4094 await this.sleep();
4095 const e = await this.api.getSigninStatus();

Callers 1

runMethod · 0.95

Calls 3

ssoForMCloudMethod · 0.95
ssoForPortalMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected