(env)
| 75 | |
| 76 | class Task { |
| 77 | constructor(env) { |
| 78 | this.index = $.userIdx++; |
| 79 | this.raw = String(env || "").trim(); |
| 80 | this.user = this.raw.split(strSplitor); |
| 81 | this.accountId = this.user[0].trim(); |
| 82 | this.token = ""; |
| 83 | this.refreshToken = ""; |
| 84 | this.communityToken = ""; |
| 85 | this.uuid = randomUuid(); |
| 86 | this.activity_code = ""; |
| 87 | this.userFlag = false; |
| 88 | this.userInfo = {}; |
| 89 | this.isLegacyToken = this.user.length >= 2; |
| 90 | if (this.isLegacyToken) { |
| 91 | this.token = this.user[0].trim(); |
| 92 | this.uuid = this.user[1].trim() || this.uuid; |
| 93 | this.accountId = `legacy:${shortToken(this.token)}`; |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | async run() { |
| 98 | if (this.isLegacyToken) { |
nothing calls this directly
no test coverage detected