Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/mgt-msal2-provider

Package Overview
Dependencies
Maintainers
2
Versions
742
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/mgt-msal2-provider - npm Package Compare versions

Comparing version 3.1.3-preview.513031b to 3.1.3-preview.53b291c

1

dist/es6/Msal2Provider.d.ts

@@ -275,2 +275,3 @@ /**

private initProvider;
private readonly handleMsalEvent;
/**

@@ -277,0 +278,0 @@ * Attempts to sign in user silently

@@ -107,2 +107,7 @@ /**

this.isMultipleAccountEnabled = true;
this.handleMsalEvent = (message) => {
if (message.eventType === 'msal:acquireTokenSuccess' && 'scopes' in message.payload) {
this.approvedScopes = message.payload.scopes;
}
};
void this.initProvider(config);

@@ -155,2 +160,3 @@ }

}
this._publicClientApplication.addEventCallback(this.handleMsalEvent);
yield this._publicClientApplication.initialize();

@@ -157,0 +163,0 @@ this.ms_config.system = msalConfig.system || {};

4

package.json
{
"name": "@microsoft/mgt-msal2-provider",
"version": "3.1.3-preview.513031b",
"version": "3.1.3-preview.53b291c",
"description": "The Microsoft Graph Toolkit Msal 2.0 Provider",

@@ -47,3 +47,3 @@ "keywords": [

"@azure/msal-browser": "^2.22.0",
"@microsoft/mgt-element": "3.1.3-preview.513031b",
"@microsoft/mgt-element": "3.1.3-preview.53b291c",
"@microsoft/microsoft-graph-client": "3.0.2"

@@ -50,0 +50,0 @@ },

@@ -25,3 +25,5 @@ /**

InteractionRequiredAuthError,
SsoSilentRequest
SsoSilentRequest,
EventMessage,
AuthenticationResult
} from '@azure/msal-browser';

@@ -390,2 +392,3 @@ import { AuthenticationProviderOptions } from '@microsoft/microsoft-graph-client';

}
this._publicClientApplication.addEventCallback(this.handleMsalEvent);
await this._publicClientApplication.initialize();

@@ -424,2 +427,8 @@

private readonly handleMsalEvent = (message: EventMessage): void => {
if (message.eventType === 'msal:acquireTokenSuccess' && 'scopes' in message.payload) {
this.approvedScopes = message.payload.scopes;
}
};
/**

@@ -426,0 +435,0 @@ * Attempts to sign in user silently

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc