試圖通過微軟提供商登錄,但在彈出視窗中提供我的電子郵件后,我收到以下錯誤:
error_description=The request is not valid for the application's 'userAudience' configuration. In order to use /common/ endpoint, the application must not be configured with 'Consumer' as the user audience. The userAudience should be configured with 'All' to use /common/ endpoint.
我不確定我需要在哪里將其設定為消費者。這是我的代碼
const provider = new OAuthProvider("microsoft.com");
signInWithPopup(auth, provider)
.then((result) => {
console.log("doLogin then section");
// User is signed in.
// IdP data available in result.additionalUserInfo.profile.
// Get the OAuth access token and ID Token
const credential = OAuthProvider.credentialFromResult(result);
const accessToken = credential.accessToken;
const idToken = credential.idToken;
})
.catch((error) => {
console.log("doLogin", error);
});
uj5u.com熱心網友回復:
這是常見錯誤使用支持的帳戶型別創建新的應用程式注冊,因為“所有 Microsoft 帳戶用戶”適用于任何錯誤。

轉載請註明出處,本文鏈接:https://www.uj5u.com/net/517387.html
標籤:Google Cloud Collective javascript火力基地
上一篇:多個托管網站,只有一個后端
