@microsoft/mgt-msal2-provider
Advanced tools
Comparing version 4.2.3-preview.b7a737d to 4.2.3-preview.ba87c32
@@ -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-preview.b7a737d", | ||
"version": "4.2.3-preview.ba87c32", | ||
"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-preview.b7a737d", | ||
"@microsoft/mgt-element": "4.2.3-preview.ba87c32", | ||
"@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
201673
2061
105
+ Added@microsoft/mgt-element@4.2.3-preview.ba87c32(transitive)
- Removed@microsoft/mgt-element@4.2.3-preview.b7a737d(transitive)