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

Method applyToken

wxapp/bluedash.js:114–118  ·  view source on GitHub ↗
(data = {})

Source from the content-addressed store, hash-verified

112 }
113
114 applyToken(data = {}) {
115 const accessToken = data.accessToken || data.access_token || "";
116 this.authorization = data.authorization || data.Authorization || (accessToken ? `Bearer ${accessToken}` : "");
117 this.refreshToken = data.refreshToken || data.refresh_token || "";
118 }
119
120 getHeaders(extra = {}) {
121 const headers = {

Callers 2

runMethod · 0.95
loginByWxCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected