@microsoft/mgt-msal2-provider
Advanced tools
Comparing version 4.1.0 to 4.2.0-preview.dadb0f3
@@ -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 @@ /** |
{ | ||
"name": "@microsoft/mgt-msal2-provider", | ||
"version": "4.1.0", | ||
"version": "4.2.0-preview.dadb0f3", | ||
"description": "The Microsoft Graph Toolkit Msal 2.0 Provider", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"type": "git", | ||
"url": "https://github.com/microsoftgraph/microsoft-graph-toolkit" | ||
"url": "git+https://github.com/microsoftgraph/microsoft-graph-toolkit.git" | ||
}, | ||
@@ -47,4 +47,4 @@ "author": "Microsoft", | ||
"dependencies": { | ||
"@azure/msal-browser": "^2.22.0", | ||
"@microsoft/mgt-element": "4.1.0", | ||
"@azure/msal-browser": "^2.38.3", | ||
"@microsoft/mgt-element": "4.2.0-preview.dadb0f3", | ||
"@microsoft/microsoft-graph-client": "3.0.2" | ||
@@ -51,0 +51,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2060
201567
1
+ Added@microsoft/mgt-element@4.2.0-preview.dadb0f3(transitive)
+ Addedidb@8.0.0(transitive)
- Removed@microsoft/mgt-element@4.1.0(transitive)
- Removedidb@6.0.0(transitive)
Updated@azure/msal-browser@^2.38.3