This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 232
okta-react: SecureRoute updates state during an existing state transition #138
Comments
mschaeffner
pushed a commit
to mschaeffner/okta-oidc-js
that referenced
this issue
Mar 7, 2018
robertjd
pushed a commit
that referenced
this issue
May 4, 2018
This change is now available in version 1.0.2 on npm. Thanks again @mschaeffner ! |
I'm running into this now, seems like the Okta docs is still recommending the same or a similar action for the widget [email protected] |
@zg-trinac: This exact github issue is a few major versions behind the code you are running, and you're probably seeing a slightly different error. Could you open a new issue with details about the error you are seeing? When you do so, could you please expand your question a bit, as I'm not clear which recommendation you are asking about. |
My bad, filed it here: #873 |
8 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is caused by using
setState
insiderender
and results in following error in the Javascript console:The problem is the call
this.props.auth.login()
in therender
function of SecureRoute.js.This error can be reproduced by running the test app in
okta-oidc-js/packages/okta-react/test/e2e/harness/
.npm start
See also discussion in Okta dev forum:
https://devforum.okta.com/t/react-integration-example/800
The text was updated successfully, but these errors were encountered: