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

Method applyToken

wxapp/parkson.js:119–123  ·  view source on GitHub ↗
(data = {})

Source from the content-addressed store, hash-verified

117 }
118
119 applyToken(data = {}) {
120 this.accessToken = data.accessToken || data.access_token || "";
121 this.authorization = data.authorization || (this.accessToken ? `bearer${this.accessToken}` : "");
122 this.userInfo = data;
123 }
124
125 getHeaders(extra = {}) {
126 const headers = {

Callers 2

runMethod · 0.95
loginByWxCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected