(env)
| 63 | |
| 64 | class Task { |
| 65 | constructor(env) { |
| 66 | this.index = $.userIdx++; |
| 67 | this.raw = String(env || "").trim(); |
| 68 | this.user = this.raw.split(strSplitor); |
| 69 | this.accountId = this.user[0].trim(); |
| 70 | this.token = ""; |
| 71 | this.sessionKey = ""; |
| 72 | this.userId = ""; |
| 73 | this.userInfo = {}; |
| 74 | this.isLegacyToken = /^Mer|eyJ/i.test(this.accountId) || this.user.length >= 2; |
| 75 | if (this.isLegacyToken) { |
| 76 | this.token = this.accountId.replace(/^Mer/i, ""); |
| 77 | this.accountId = `legacy:${shortToken(this.token)}`; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | async run() { |
| 82 | if (this.isLegacyToken) { |
nothing calls this directly
no test coverage detected