Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static async getAllOrgs(): Promise {
const authFiles = await sfcore.AuthInfo.listAllAuthFiles();
const orgs = authFiles.map(authfile => authfile.replace('.json', ''));
return orgs;
}