Constructs a new AsyncCreatable
instance. For internal and subclass use only.
New subclass instances must be created with the static create method.
Optional
options: objectAn options object providing initialization params.
Finds all org authorizations in the global info file (.sf/sf.json)
Finds authorization files for username/alias in the global .sfdx folder Throws SfError{ name: 'TargetOrgNotSetError' } if no target-org Throws SfError{ name: 'NamedOrgNotFoundError' } if specified user is not found
Optional
usernameOrAlias: stringusername or alias of the auth you want to find, defaults to the configured target-org
Handles the removing of authorizations, which includes deleting the auth file in the global .sfdx folder, deleting any configs that are associated with the username/alias, and deleting any aliases associated with the username