注销并立即尝试重新登录时出现以下错误。只有关闭浏览器似乎才能解决该问题。所以我假设这是某种缓存问题,但我似乎无法找到解决方法。
这是我当前使用的登录代码:
async signIn() {
// console.log(this.appMSALObj)
var _this = this;
await this.appMSALObj.loginPopup(settings.loginRequest)
.then(function(response) {
//console.log("authService: login complete")
_this.selectAccount();
//console.log(_this.account)
_this.router.navigate(['/home'])
})
.catch(error => {
console.error(error);
});
}
它永远不会进入 selectAccount 函数。
msalConfig 设置为使用 localStorage,并且 storeAuthStateInCookie 标志为 false。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号