Skip to content

Commit 7e95b41

Browse files
committed
Fixing silent request error cleanup
1 parent c72f3c7 commit 7e95b41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/msal-browser/src/app/PublicClientApplication.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ export class PublicClientApplication {
448448
// Handle response from hash string.
449449
return await silentHandler.handleCodeResponse(hash);
450450
} catch (e) {
451+
this.browserStorage.cleanRequest();
451452
throw e;
452453
}
453454
}

samples/msal-browser-samples/VanillaJSTestApp2.0/app/ssoSilent/authConfig.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ const graphConfig = {
2525
// Add here scopes for access token to be used at MS Graph API endpoints.
2626
const tokenRequest = {
2727
scopes: ["Mail.Read", "openid", "profile"],
28-
loginHint: "[email protected]",
2928
redirectUri: "http://localhost:30662/",
3029
forceRefresh: false // Set this to "true" to skip a cached token and go to the server to get a new token
3130
};
3231

3332
const silentRequest = {
3433
scopes: ["openid", "profile", "User.Read", "Mail.Read"],
3534
redirectUri: "http://localhost:30662/",
36-
loginHint: "[email protected]"
35+
loginHint: "[email protected]"
3736
};

0 commit comments

Comments
 (0)