(sps: string[] = [])
| 183 | |
| 184 | /** Sets scopes for API calls. */ |
| 185 | export function setScopes(sps: string[] = []): void { |
| 186 | commandScopes = new Set<string>([ |
| 187 | scopes.EMAIL, |
| 188 | scopes.OPENID, |
| 189 | scopes.CLOUD_PROJECTS_READONLY, |
| 190 | scopes.FIREBASE_PLATFORM, |
| 191 | ]); |
| 192 | for (const s of sps) { |
| 193 | commandScopes.add(s); |
| 194 | } |
| 195 | logger.debug("> command requires scopes:", Array.from(commandScopes)); |
| 196 | } |