Azure active directory Msal.js 2.2 PKCE授权流刷新令牌丢失
我正在使用Msal.js 2.2(@azure/Msal browser 2.2.0)进行,ID和访问令牌存在,但没有刷新令牌。我错过什么了吗Azure active directory Msal.js 2.2 PKCE授权流刷新令牌丢失,azure-active-directory,msal.js,Azure Active Directory,Msal.js,我正在使用Msal.js 2.2(@azure/Msal browser 2.2.0)进行,ID和访问令牌存在,但没有刷新令牌。我错过什么了吗 this.msalConfig = { auth: { clientId: this.clientid, authority: this.authority, //https://login.microsoftonline.com/{tenantid}
this.msalConfig = {
auth: {
clientId: this.clientid,
authority: this.authority, //https://login.microsoftonline.com/{tenantid}
navigateToLoginRequestUrl: true
},
cache: {
cacheLocation: "sessionStorage",
storeAuthStateInCookie: false,
}
};
this.msalApp = new PublicClientApplication(this.msalConfig);
尝试在
范围中设置脱机访问
:
scopes: ["openid", "profile", "offline_access", "User.Read"]
如果我的答案对您有帮助,您可以将其作为答案接受(单击答案旁边的复选标记,将其从灰色变为已填写)。看见这可能对其他社区成员有益。谢谢。嗨,你检查我的答案了吗?这个问题解决了吗?