Skip to content

Commit 65c9b57

Browse files
committed
update claims format
1 parent 060267c commit 65c9b57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/active-directory/develop/msal-error-handling-js.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ myMSALObj.acquireTokenSilent(accessTokenRequest).then(function(accessTokenRespon
124124
}).catch(function(error) {
125125
if (error instanceof InteractionRequiredAuthError) {
126126

127-
// extract, if exists, claims from error message
128-
if (error.ErrorMessage.claims) {
129-
accessTokenRequest.claims = window.atob(error.ErrorMessage.claims), // decode the base64 string
127+
// extract, if exists, claims from the error object
128+
if (error.claims) {
129+
accessTokenRequest.claims = error.claims,
130130

131131
// call acquireTokenPopup in case of InteractionRequiredAuthError failure
132132
myMSALObj.acquireTokenPopup(accessTokenRequest).then(function(accessTokenResponse) {

0 commit comments

Comments
 (0)