【发布时间】:2020-12-19 22:51:13
【问题描述】:
我正在使用create-react-app 在http://localhost 上开发一个使用@azure/msal-browser,当尝试通过msal.loginRedirect() 登录时,浏览器返回到该站点,并且页面正确,但是用户未登录并且控制台中出现以下错误(来自 handleRedirectPromise 方法)
ClientAuthError: state_not_found: State not found: Cached State
状态参数 is 已传递到登录 url (https://login.microsoft.com...state=base64string...) 但没有任何内容本地/会话/Cookie 存储。
Azure 应用程序配置很好(以前使用过),msal 库没有工作/配置,有什么想法吗?
【问题讨论】:
-
您使用的是哪个 MSAL 版本和代码流?
标签: typescript azure create-react-app msal