Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smallfawn/QLScriptPublic
/ checkToken
Method
checkToken
wxapp/parkson.js:188–195 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
186
}
187
188
async
checkToken() {
189
try {
190
await
this.getUserInfo(false);
191
return
true;
192
} catch (e) {
193
return
false;
194
}
195
}
196
197
async
getUserInfo(log = true) {
198
const
data =
await
this.request({
Callers
1
run
Method · 0.95
Calls
1
getUserInfo
Method · 0.95
Tested by
no test coverage detected