@adinsure-ops/ops-cli-auth-cjs-library
v1.0.2
Published
Operations CLI authentication module as a library exposed as a CJS
Downloads
43
Readme
Ops Cli Auth CJS Library
Ops CLI auth library as a CJS module. Meant to be used as a standalone library unit.
For documentation visit ops-cli documentation under the login command.
The main function the library exposes is login
:
/**
* Performs a login operation to Azure with various options.
*
* @param deviceFlow - If true, authenticates using device flow. Defaults to false.
* @param npm - If true, also registers for npm. Defaults to false.
* @param skipCI - If provided, skips login if the specified environment variable is set.
* @param force - If true, forces a change of login token. Defaults to false.
*
* @returns {Promise<void>}
*/
async function login(
deviceFlow = false,
npm = false,
skipCI: string,
force = false
): Promise<void> {
//...
}