小编Pau*_*nce的帖子

使用 @azure/Msal-browser 时,我在 ClientAuthError: state_not_found: State not found 上收到此错误消息

我正在开发一个 using @azure/msal-browser on http://localhostusing create-react-app,当尝试通过msal.loginRedirect()浏览器登录时重新调整到站点,并且正确的页面但是用户未登录并且控制台中出现以下错误(来自handleRedirectPromise方法) ) ClientAuthError: state_not_found: State not found: Cached State

状态参数传递到登录 URL (https://login.microsoft.com...state= base64string ...),但本地/会话/Cookie 存储中没有任何内容。

Azure应用程序配置很好(之前使用过),有些东西没有使用msal库进行工作/配置,有什么想法吗?

azure typescript azure-ad-msal create-react-app

5
推荐指数
1
解决办法
7126
查看次数

Fable 和 EventTarget 中的语法混乱

我是 Fable/Elmish/React 的新手,我正在尝试了解转换 EventTarget 的语法,以便我可以访问.value

我能找到的例子都使用

input [ Value model.Value
          OnChange (fun ev -> ev.target?value |> string
         ]
Run Code Online (Sandbox Code Playgroud)

不过我得到

None of the types 'EventTarget, string' support the operator '?'

相反,我必须使用以下语法

input [ Value model.Value
          OnChange (fun ev -> (ev.target:?> HTMLInputElement ).value
         ]
Run Code Online (Sandbox Code Playgroud)

那么什么给出呢?我是否引用了不同的程序集?

f# fable-f# elmish

3
推荐指数
1
解决办法
304
查看次数