UNPKG

@azure/identity-broker

Version:

A native plugin for Azure Identity credentials to enable broker authentication such as WAM

25 lines 873 B
import type { IdentityPlugin } from "@azure/identity"; /** * A plugin that provides WAM Integration for `@azure/identity` * credentials. The plugin API is compatible with `@azure/identity` versions * 4.0.0 and later. Load this plugin using the `useIdentityPlugin` * function, imported from `@azure/identity`. * * Example: * * ```ts snippet:using_plugins * import { useIdentityPlugin, InteractiveBrowserCredential } from "@azure/identity"; * import { nativeBrokerPlugin } from "@azure/identity-broker"; * * useIdentityPlugin(nativeBrokerPlugin); * * const credential = new InteractiveBrowserCredential({ * brokerOptions: { * enabled: true, * parentWindowHandle: new Uint8Array(0), // This should be a handle to the parent window * }, * }); * ``` */ export declare const nativeBrokerPlugin: IdentityPlugin; //# sourceMappingURL=index.d.ts.map