Get the auth fields (decrypted) needed to make a connection.
Get the authorization fields.
Decrypt the fields.
Get the SFDX Auth URL.
Convenience function to handle typical side effects encountered when dealing with an AuthInfo. Given the values supplied in parameter sideEffects, this function will set auth alias, default auth and default dev hub.
instance of AuthSideEffects
Updates the cache and persists the authentication fields (encrypted).
New data to save.
Set the target-env (default) or the target-dev-hub to the alias if it exists otherwise to the username. Method will try to set the local config first but will default to global config if that fails.
Update the authorization fields, encrypting sensitive fields, but do not persist.
this object is returned.
Authorization fields to update.
Find all dev hubs available in the local environment.
Given a set of decrypted fields and an authInfo, determine if the org belongs to an available dev hub.
Get a list of all authorizations based on auth files stored in the global directory. One can supply a filter (see
A predicate function that returns true for those org authorizations that are to be retained.
Parse a sfdx auth url, usually obtained by
Handles persistence and fetching of user authentication information using JWT, OAuth, or refresh tokens. Sets up the refresh flows that jsForce will use to keep tokens active. An AuthInfo can also be created with an access token, but AuthInfos created with access tokens can't be persisted to disk.
See Salesforce DX Usernames and Orgs