Skip to content

Commit 7dcf708

Browse files
committed
minor updates
1 parent 6105245 commit 7dcf708

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

articles/active-directory/develop/app-resilience-continuous-access-evaluation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ let tokenResponse;
119119

120120
try {
121121

122-
tokenResponse = await msalInstance.acquireTokenPopup({
122+
tokenResponse = await msalInstance.acquireTokenSilent({
123123
claims: window.atob(claimsChallenge), // decode the base64 string
124124
scopes: scopes, // e.g ['User.Read', 'Contacts.Read']
125125
account: account, // current active account
126126
});
127127

128128
} catch (error) {
129129

130-
if (error instanceof BrowserAuthError) {
130+
if (error instanceof InteractionRequiredAuthError) {
131131

132-
tokenResponse = await msalInstance.acquireTokenRedirect({
132+
tokenResponse = await msalInstance.acquireTokenPopup({
133133
claims: window.atob(claimsChallenge), // decode the base64 string
134134
scopes: scopes, // e.g ['User.Read', 'Contacts.Read']
135135
account: account, // current active account

articles/active-directory/develop/claims-challenge.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,13 @@ Those using MSAL.js can add `clientCapabilities` property to the configuration o
125125
const msalConfig = {
126126
auth: {
127127
clientId: 'Enter_the_Application_Id_Here',
128-
clientCapabilities: ["CP1"] // this lets the resource owner know that this client is capable of handling claims challenge.
128+
clientCapabilities: ["CP1"]
129129
// the remaining settings
130130
// ...
131131
}
132132
}
133+
134+
const msalInstance = new msal.PublicClientApplication(msalConfig);
133135
```
134136

135137
---

0 commit comments

Comments
 (0)