try to fix account list

This commit is contained in:
creeper123123321 2021-01-20 15:07:14 -03:00
parent ff32bd52ff
commit 9a8a5f9250

View File

@ -27,14 +27,7 @@ function loginMs() {
myMSALObj.loginRedirect(loginRequest);
}
function handleResponse(response) {
const currentAccounts = myMSALObj.getAllAccounts();
refreshAccountList();
}
$(() => {
myMSALObj.handleRedirectPromise(handleResponse);
});
myMSALObj.handleRedirectPromise().then(() => refreshAccountList());
function getMcToken(username) {
return getTokenPopup(username, loginRequest)