@microsoft/mgt-msal2-provider
Advanced tools
Comparing version 4.1.0-preview.bc8423c to 4.1.0-preview.da77913
@@ -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.bc8423c", | ||
"version": "4.1.0-preview.da77913", | ||
"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.bc8423c", | ||
"@microsoft/mgt-element": "4.1.0-preview.da77913", | ||
"@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
201430
2060
+ Added@microsoft/mgt-element@4.1.0-preview.da77913(transitive)
- Removed@microsoft/mgt-element@4.1.0-preview.bc8423c(transitive)