@microsoft/mgt-msal2-provider
Advanced tools
Comparing version 4.2.3 to 4.2.4-preview.1f3deb8
@@ -401,5 +401,5 @@ /** | ||
*/ | ||
getAccessToken(options?: AuthenticationProviderOptions): Promise<string>; | ||
getAccessToken(opts?: AuthenticationProviderOptions): Promise<string>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=Msal2Provider.d.ts.map |
@@ -487,5 +487,6 @@ /** | ||
*/ | ||
getAccessToken(options) { | ||
getAccessToken(opts) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const scopes = options ? options.scopes || this.scopes : this.scopes; | ||
const scopes = ((_a = opts === null || opts === void 0 ? void 0 : opts.scopes) === null || _a === void 0 ? void 0 : _a.length) ? opts.scopes : this.scopes; | ||
const accessTokenRequest = { | ||
@@ -492,0 +493,0 @@ scopes, |
{ | ||
"name": "@microsoft/mgt-msal2-provider", | ||
"version": "4.2.3", | ||
"version": "4.2.4-preview.1f3deb8", | ||
"description": "The Microsoft Graph Toolkit Msal 2.0 Provider", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"@azure/msal-browser": "^2.38.3", | ||
"@microsoft/mgt-element": "4.2.3", | ||
"@microsoft/mgt-element": "4.2.4-preview.1f3deb8", | ||
"@microsoft/microsoft-graph-client": "3.0.2" | ||
@@ -50,0 +50,0 @@ }, |
@@ -736,4 +736,4 @@ /** | ||
*/ | ||
public async getAccessToken(options?: AuthenticationProviderOptions): Promise<string> { | ||
const scopes = options ? options.scopes || this.scopes : this.scopes; | ||
public async getAccessToken(opts?: AuthenticationProviderOptions): Promise<string> { | ||
const scopes = opts?.scopes?.length ? opts.scopes : this.scopes; | ||
const accessTokenRequest: SilentRequest = { | ||
@@ -740,0 +740,0 @@ scopes, |
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
201673
2061
1
+ Added@microsoft/mgt-element@4.2.4-preview.1f3deb8(transitive)
- Removed@microsoft/mgt-element@4.2.3(transitive)