Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@adinsure-ops/ops-cli-auth-cjs-library

blaz.balon9.7kSEE LICENSE IN LICENSE1.0.3TypeScript support: included

Operations CLI authentication module as a library exposed as a CJS

operations, library

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> {
    //...
}