update msal-browser, prompt select_account

This commit is contained in:
creeper123123321 2021-12-01 20:55:01 -03:00
parent 3f16486a71
commit fcb6dc42fb
2 changed files with 3 additions and 3 deletions

View File

@ -40,8 +40,8 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.
<script defer crossorigin="anonymous"
integrity="sha512-UNM1njAgOFUa74Z0bADwAq8gbTcqZC8Ej4xPSzpnh0l6KMevwvkBvbldF9uR++qKeJ+MOZHRjV1HZjoRvjDfNQ=="
src="https://cdnjs.cloudflare.com/ajax/libs/uuid/8.3.2/uuid.min.js"></script>
<script defer src="https://alcdn.msauth.net/browser/2.17.0/js/msal-browser.min.js"
integrity="sha384-nPvMTGGQIdPr+oK09URmAR99LAk9PEVLJE+RJfjIH/QADFbVgGlF9tFdVbgSYC+c"
<script defer src="https://alcdn.msauth.net/browser/2.19.0/js/msal-browser.min.js"
integrity="sha384-VK+6hHt27itNFksZdEeXofJXdAhmlizHbC/a1TUUJm/Yq6gOuAjXKkiiCaGbFsnd"
crossorigin="anonymous"></script>
<script defer src="js/config.js"></script>
<script defer src="js/page.js"></script>

View File

@ -581,7 +581,7 @@ function loginMc(user, pass) {
$("#form_add_mc input").val("");
}
const loginRequest = {scopes: ["XboxLive.signin"]};
const loginRequest = {scopes: ["XboxLive.signin"], prompt: "select_account"};
let redirectUrl = "https://viaversion.github.io/VIAaaS/src/main/resources/web/";
if (location.hostname === "localhost" || whitelistedOrigin.includes(location.origin)) {
redirectUrl = location.origin + location.pathname;