azureauth
TypeScript icon, indicating that this package has built-in type declarations

0.12.1 • Public • Published

node-azureauth

This package wraps the https://github.com/AzureAD/microsoft-authentication-cli with a node.js exec wrapper.

That way the azureauth CLI can be downloaded automatically, and therefore scoped to the ./node_modules/.bin allowing for multiple versions of the AzureAuth CLI to exist on one machine at once.

Usage

Install the package wiwth

> npm i azureauth

Use the azureauth CLI by calling it from NPM scripts.

"scripts": {
  "authcli": "azureauth --version"
}
> npm run authcli

Use it as a node module by importing azureauth.

import { adoPat } from "azureauth";

const pat = await adoPat({
  displayName: "test",
  organization: "test",
  promptHint: "test",
  scope: ["test"],
});

Package Sidebar

Install

npm i azureauth

Weekly Downloads

7,249

Version

0.12.1

License

MIT

Unpacked Size

220 kB

Total Files

8

Last publish

Collaborators

  • rnbot
  • dannyvv
  • jonathancreamer