@equinor/fusion-framework-module-msal
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -6,2 +6,10 @@ # Change Log | ||
## 0.1.1 (2022-02-09) | ||
**Note:** Version bump only for package @equinor/fusion-framework-module-msal | ||
# 0.1.0 (2022-02-07) | ||
@@ -8,0 +16,0 @@ |
@@ -17,3 +17,5 @@ import { AuthConfigurator } from './configurator'; | ||
if (scopes.length) { | ||
const token = await modules.auth.acquireToken({ scopes }); | ||
const token = await modules.auth.acquireToken({ | ||
scopes, | ||
}); | ||
if (token) { | ||
@@ -20,0 +22,0 @@ const headers = new Headers(request.headers); |
{ | ||
"name": "@equinor/fusion-framework-module-msal", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -25,4 +25,4 @@ "main": "./dist/esm/index.js", | ||
"@azure/msal-browser": "^2.21.0", | ||
"@equinor/fusion-framework-module": "^0.1.0", | ||
"@equinor/fusion-framework-module-http": "^0.1.0" | ||
"@equinor/fusion-framework-module": "^0.1.1", | ||
"@equinor/fusion-framework-module-http": "^0.1.1" | ||
}, | ||
@@ -37,3 +37,3 @@ "types": "index.d.ts", | ||
}, | ||
"gitHead": "bbd0502b7d5277534489dab284c3586c67b746a2" | ||
"gitHead": "ca79b01fcc32c2c4e4aeea2f7c251fe9d91a2d04" | ||
} |
@@ -5,3 +5,5 @@ import { Configuration, IPublicClientApplication } from '@azure/msal-browser'; | ||
export type AuthClientConfig = Configuration & { auth: Partial<Configuration['auth']> }; | ||
export type AuthClientConfig = Configuration & { | ||
auth: Partial<Configuration['auth']>; | ||
}; | ||
@@ -8,0 +10,0 @@ /** |
@@ -30,3 +30,5 @@ import { AuthConfigurator, IAuthConfigurator } from './configurator'; | ||
/** TODO should be try catch, check caller for handling */ | ||
const token = await modules.auth.acquireToken({ scopes }); | ||
const token = await modules.auth.acquireToken({ | ||
scopes, | ||
}); | ||
if (token) { | ||
@@ -33,0 +35,0 @@ const headers = new Headers(request.headers); |
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
131812
904