@microsoft/mgt-msal2-provider
Advanced tools
Comparing version 3.1.3-preview.68f517b to 3.1.3-preview.6d44a17
@@ -0,2 +1,9 @@ | ||
/** | ||
* ------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. | ||
* See License in the project root for license information. | ||
* ------------------------------------------------------------------------------------------- | ||
*/ | ||
export * from './mgt-msal2-provider'; | ||
export * from './exports'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -7,5 +7,4 @@ /** | ||
*/ | ||
import { registerMgtMsal2Provider } from './mgt-msal2-provider'; | ||
registerMgtMsal2Provider(); | ||
export * from './mgt-msal2-provider'; | ||
export * from './exports'; | ||
//# sourceMappingURL=index.js.map |
@@ -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 || {}; |
{ | ||
"name": "@microsoft/mgt-msal2-provider", | ||
"version": "3.1.3-preview.68f517b", | ||
"version": "3.1.3-preview.6d44a17", | ||
"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.68f517b", | ||
"@microsoft/mgt-element": "3.1.3-preview.6d44a17", | ||
"@microsoft/microsoft-graph-client": "3.0.2" | ||
@@ -50,0 +50,0 @@ }, |
@@ -7,4 +7,3 @@ /** | ||
*/ | ||
import { registerMgtMsal2Provider } from './mgt-msal2-provider'; | ||
registerMgtMsal2Provider(); | ||
export * from './mgt-msal2-provider'; | ||
export * from './exports'; |
@@ -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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
209969
2012
+ Added@lit/reactive-element@2.0.4(transitive)
+ Added@microsoft/mgt-element@3.1.3-preview.6d44a17(transitive)
+ Addedlit@3.2.1(transitive)
+ Addedlit-element@4.1.1(transitive)
+ Addedlit-html@3.2.1(transitive)
- Removed@lit/reactive-element@1.6.3(transitive)
- Removed@microsoft/mgt-element@3.1.3-preview.68f517b(transitive)
- Removedlit@2.8.0(transitive)
- Removedlit-element@3.3.3(transitive)
- Removedlit-html@2.8.0(transitive)