Skip to content

Commit b952527

Browse files
committed
- upgrades msal
1 parent 6ae7172 commit b952527

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

helpers/authHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as msal from '@azure/msal-node';
1+
import { ConfidentialClientApplication } from '@azure/msal-node';
22

33
import { msalConfiguration } from '../constants';
44

@@ -21,7 +21,7 @@ export function getAuthUrl() {
2121
* @param {AcquireTokenCallback} callback The callback function.
2222
*/
2323
export function getTokenFromCode(code) {
24-
const authContext = new msal.AuthenticationContext(msalConfiguration.authority);
24+
const authContext = new ConfidentialClientApplication(msalConfiguration.authority);
2525
return new Promise((resolve, reject) => {
2626
authContext.acquireTokenWithAuthorizationCode(
2727
code,

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "eslint ."
1010
},
1111
"dependencies": {
12-
"@azure/msal-node": "^1.0.0-alpha.1",
12+
"@azure/msal-node": "^1.0.0-alpha.2",
1313
"@microsoft/microsoft-graph-client": "^2.0.0",
1414
"body-parser": "^1.19.0",
1515
"escape-html": "^1.0.3",

0 commit comments

Comments
 (0)