我会在团队应用中使用auth女士。
microsoftTeams.initialize(() => {
console.log(microsoftTeams)
microsoftTeams.authentication.authenticate({
url: window.location.origin + "/Auth",
successCallback: () => {
console.log(" login success")
updateUserAuth(user, msalApp);
},
failureCallback: (error) => {
console.log("error", error);
}
})
});
在/Auth
路线内
const msalApp = new UserAgentApplication(msalConfig);
msalApp.handleRedirectCallback((response) => {
console.log(response)
handleTokenReceived(response)
}, (error, state) => {
sessionStorage.clear();
console.log("error on callback")
handleErrorReceived(error, state)
});
我遇到此错误
message: "Login_In_Progress: Error during login call - login is already in progress."`
我找到了这个post,但没有帮助
有关更多信息,here