@microsoft/mgt-electron-provider
Advanced tools
Comparing version 4.2.3 to 4.2.4-preview.1f3deb8
@@ -195,5 +195,6 @@ "use strict"; | ||
getAccessToken(options) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let authResponse = null; | ||
const scopes = (options === null || options === void 0 ? void 0 : options.scopes) ? options.scopes : this.authCodeUrlParams.scopes; | ||
const scopes = ((_a = options === null || options === void 0 ? void 0 : options.scopes) === null || _a === void 0 ? void 0 : _a.length) ? options.scopes : this.authCodeUrlParams.scopes; | ||
const account = this.account || (yield this.getAccount()); | ||
@@ -200,0 +201,0 @@ if (account) { |
{ | ||
"name": "@microsoft/mgt-electron-provider", | ||
"version": "4.2.3", | ||
"version": "4.2.4-preview.1f3deb8", | ||
"description": "The Microsoft Graph Toolkit Electron Provider", | ||
@@ -46,3 +46,3 @@ "keywords": [ | ||
"@azure/msal-node": "^1.18.4", | ||
"@microsoft/mgt-element": "4.2.3", | ||
"@microsoft/mgt-element": "4.2.4-preview.1f3deb8", | ||
"@microsoft/microsoft-graph-client": "3.0.2" | ||
@@ -49,0 +49,0 @@ }, |
@@ -347,3 +347,3 @@ /** | ||
let authResponse: AuthenticationResult | null = null; | ||
const scopes = options?.scopes ? options.scopes : this.authCodeUrlParams.scopes; | ||
const scopes = options?.scopes?.length ? options.scopes : this.authCodeUrlParams.scopes; | ||
const account = this.account || (await this.getAccount()); | ||
@@ -350,0 +350,0 @@ if (account) { |
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
128278
2203
1
+ Added@microsoft/mgt-element@4.2.4-preview.1f3deb8(transitive)
- Removed@microsoft/mgt-element@4.2.3(transitive)