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

Function isTokenError

wxapp/nissin.js:55–58  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

53}
54
55function isTokenError(e) {
56 const message = String(e?.message || e || "");
57 return e?.code === 401 || e?.code === 900001 || /401|900001|token|登录|授权|Auth-Status|invalid/i.test(message);
58}
59
60class Task {
61 constructor(openid) {

Callers 4

getUserMethod · 0.70
doSignMethod · 0.70
getTaskListMethod · 0.70
enterGameMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected