@azure/msal-node-extensions 1.0.0-alpha.30 → 1.0.0-alpha.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ /// <reference types="node" />
2
+ import { AccountInfo, AuthenticationResult, INativeBrokerPlugin, LoggerOptions, NativeRequest, NativeSignOutRequest } from "@azure/msal-common";
3
+ export declare class NativeBrokerPlugin implements INativeBrokerPlugin {
4
+ private logger;
5
+ isBrokerAvailable: boolean;
6
+ constructor();
7
+ setLogger(loggerOptions: LoggerOptions): void;
8
+ getAccountById(accountId: string, correlationId: string): Promise<AccountInfo>;
9
+ getAllAccounts(clientId: string, correlationId: string): Promise<AccountInfo[]>;
10
+ acquireTokenSilent(request: NativeRequest): Promise<AuthenticationResult>;
11
+ acquireTokenInteractive(request: NativeRequest, providedWindowHandle?: Buffer): Promise<AuthenticationResult>;
12
+ signOut(request: NativeSignOutRequest): Promise<void>;
13
+ private getAccount;
14
+ private readAccountById;
15
+ private generateRequestParameters;
16
+ private getAuthenticationResult;
17
+ private generateAccountInfo;
18
+ private isMsalRuntimeError;
19
+ private wrapError;
20
+ }
@@ -0,0 +1,6 @@
1
+ import { AuthError } from "@azure/msal-common";
2
+ export declare class NativeAuthError extends AuthError {
3
+ statusCode: number;
4
+ tag: number;
5
+ constructor(errorStatus: string, errorContext: string, errorCode: number, errorTag: number);
6
+ }
package/dist/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export { CrossPlatformLockOptions } from "./lock/CrossPlatformLockOptions";
9
9
  export { PersistenceCreator } from "./persistence/PersistenceCreator";
10
10
  export { IPersistenceConfiguration } from "./persistence/IPersistenceConfiguration";
11
11
  export { Environment } from "./utils/Environment";
12
+ export { NativeBrokerPlugin } from "./broker/NativeBrokerPlugin";