Skip to content

Commit

Permalink
Update msal-node library version (#671)
Browse files Browse the repository at this point in the history
* updated msal-node library version

* Comment out forMSGraphAccess parameter

* Commented forMSGraphAccess parameter
  • Loading branch information
davidchesnut authored Feb 6, 2024
1 parent 4f6da43 commit 39fd11b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
33 changes: 16 additions & 17 deletions Samples/auth/Outlook-Add-in-SSO-events/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Samples/auth/Outlook-Add-in-SSO-events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"morgan": "~1.10.0",
"node-fetch": "^2.6.7",
"pug": "^3.0.2",
"@azure/msal-node": "1.18.4",
"@azure/msal-node": "2.6.2",
"jwks-rsa": "^2.0.5",
"uuid": "^8.3.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ async function signInAndConsent(){
try {
const accessToken = await OfficeRuntime.auth.getAccessToken({
allowSignInPrompt: false,
allowConsentPrompt: false
allowConsentPrompt: false,
//Leave the following parameter commented while developing and sideloading to avoid 13012 error.
//forMSGraphAccess: true,
});
document.getElementById("message-area").innerText = "Sign in successful.";
} catch (exception){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@
const accessToken = await Office.auth.getAccessToken({
allowSignInPrompt: true,
allowConsentPrompt: true,
forMSGraphAccess: true,
//Leave the following parameter commented while developing and sideloading to avoid 13012 error.
//forMSGraphAccess: true,
});
return accessToken;
} catch (error) {
Expand Down

0 comments on commit 39fd11b

Please sign in to comment.