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
741
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 4.1.0-preview.ae5e343 to 4.1.0-preview.bc1fedf

15

dist/es6/Msal2Provider.js

@@ -296,8 +296,11 @@ /**

const account = this._publicClientApplication.getActiveAccount();
return {
name: account.name,
mail: account.username,
id: account.homeAccountId,
tenantId: account.tenantId
};
if (account) {
return {
name: account.name,
mail: account.username,
id: account.homeAccountId,
tenantId: account.tenantId
};
}
return undefined;
}

@@ -304,0 +307,0 @@ /**

4

package.json
{
"name": "@microsoft/mgt-msal2-provider",
"version": "4.1.0-preview.ae5e343",
"version": "4.1.0-preview.bc1fedf",
"description": "The Microsoft Graph Toolkit Msal 2.0 Provider",

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

"@azure/msal-browser": "^2.38.3",
"@microsoft/mgt-element": "4.1.0-preview.ae5e343",
"@microsoft/mgt-element": "4.1.0-preview.bc1fedf",
"@microsoft/microsoft-graph-client": "3.0.2"

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

@@ -534,8 +534,12 @@ /**

const account = this._publicClientApplication.getActiveAccount();
return {
name: account.name,
mail: account.username,
id: account.homeAccountId,
tenantId: account.tenantId
} as IProviderAccount;
if (account) {
return {
name: account.name,
mail: account.username,
id: account.homeAccountId,
tenantId: account.tenantId
} as IProviderAccount;
}
return undefined;
}

@@ -542,0 +546,0 @@

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