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

Function isTokenError

wxapp/colorful.js:81–83  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

79}
80
81function isTokenError(message) {
82 return /401|403|token|登录|授权|未登录|无效|过期|失效/i.test(String(message || ""));
83}
84
85function isSuccess(result) {
86 return Number(result?.Code) === 0 && result?.Success !== false;

Callers 3

signInV2Method · 0.70
getSignInfoMethod · 0.70
getUserInfoMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected