我一直在尝试实现okta身份验证,并仔细阅读了示例。但是反应示例不起作用。 我按照示例https://developer.okta.com/code/react/okta_react/
步骤。 香草有没有做出反应,即
npx create-react-app my-app
然后我一步一步地遵循示例中的每个步骤
下面遇到错误
Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
in RequireAuth (created by WrappedComponent)
in WrappedComponent (created by Context.Consumer)
in Route (created by SecureRoute)
in SecureRoute (at AppWithRouterAccess.js:21)
in Security (at AppWithRouterAccess.js:15)
in AppWithRouterAccess (at App.js:8)
in Router (created by BrowserRouter)
in BrowserRouter (at App.js:7)
in App (at src/index.js:9)
in StrictMode (at src/index.js:8)
我已将项目上传到https://github.com/OfoeApronti/okta-react
我将不胜感激。