Skip to content

Commit c6b56cb

Browse files
committed
update api call
1 parent b04d5ef commit c6b56cb

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

1-Authentication/0-sign-in-vanillajs/App/public/authPopup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function signOut() {
9494

9595
// Choose which account to logout from by passing a username.
9696
const logoutRequest = {
97-
account: myMSALObj.getAccountByUsername(username),
97+
account: myMSALObj.getAccount({ username: username }),
9898
mainWindowRedirectUri: '/signout'
9999
};
100100

1-Authentication/0-sign-in-vanillajs/App/public/authRedirect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function signOut() {
9191

9292
// Choose which account to logout from by passing a username.
9393
const logoutRequest = {
94-
account: myMSALObj.getAccountByUsername(username),
94+
account: myMSALObj.getAccount({ username: username }),
9595
postLogoutRedirectUri: '/signout', // remove this line if you would like navigate to index page after logout.
9696

9797
};

1-Authentication/0-sign-in-vanillajs/App/public/redirect.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,4 @@
33
we recommend setting the redirectUri to a blank page or a page that does not implement MSAL.
44
For more information, please follow this link:
55
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/login-user.md#redirecturi-considerations
6-
-->
7-
<script src="/msal-browser.min.js"></script>
8-
<script type="text/javascript" src="./authConfig.js"></script>
9-
<script type="text/javascript" src="./ui.js"></script>
10-
<script type="text/javascript" src="./claimUtils.js"></script>
11-
<script type="text/javascript" src="./authRedirect.js"></script>
12-
<!-- comment the above line and uncomment the line below if you would like to use the popup flow -->
13-
<!-- <script type="text/javascript" src="./authPopup.js"></script> -->
6+
-->

0 commit comments

Comments
 (0)