1 import { ServerInfo } from '../server/servers'
3 function setAccessTokensToServers (servers: ServerInfo[]) {
4 const tasks: Promise<any>[] = []
6 for (const server of servers) {
7 const p = server.login.getAccessToken()
8 .then(t => { server.accessToken = t })
12 return Promise.all(tasks)
15 // ---------------------------------------------------------------------------
18 setAccessTokensToServers