@microsoft/mgt-msal2-provider
Advanced tools
Comparing version 4.1.0-preview.ae5e343 to 4.1.0-preview.bc1fedf
@@ -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-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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201559
2060
+ Added@microsoft/mgt-element@4.1.0-preview.bc1fedf(transitive)
- Removed@microsoft/mgt-element@4.1.0-preview.ae5e343(transitive)