We integrate Okta Sign-in Widget into our React-based website.
Fragment example :
var oktaSignIn = new OktaSignIn({baseUrl: baseUrl});
oktaSignIn.renderEl(...)
It works great when rendering the widget for the first time, but after the user logs in and logs out again, webapp displays the login component again and tries again renderElto display the widget. This throws the following exception:
Backbone.history has already been started
I created this jsfiddle to demonstrate the problem. It just launches the signin widget twice (second time after waiting). You can see that the second call throws an exception.
https://jsfiddle.net/nudwcroo/6/
, webapp , .
? javascript?