(app)
| 130 | const unifiedEnv = parseUnifiedEnv(); |
| 131 | |
| 132 | function getAccounts(app) { |
| 133 | const keys = [app.ck, app.appid, app.name].map((item) => item.toLowerCase()); |
| 134 | const accounts = []; |
| 135 | if (unifiedEnv.global.length) accounts.push(...unifiedEnv.global); |
| 136 | for (const key of keys) accounts.push(...(unifiedEnv.byKey[key] || [])); |
| 137 | accounts.push(...splitAccounts(process.env[app.ck] || "")); |
| 138 | return unique(accounts); |
| 139 | } |
| 140 | |
| 141 | function readTokenCache() { |
| 142 | try { |
no test coverage detected