React SecureRoute render behavior

SecureRoute in @okta/okta-react 2.0.0 is not working as a Route should using the render attribute. Using the sample application from here https://github.com/okta/samples-js-react, if you change the line in app.jsx from

to

<SecureRoute path="/profile" render={(routeProps) => <Profile {…routeProps} />}

It will not redirect you the login page.

2 Likes

I am getting the same issue, it won’t redirect to login when use render function vs component. Will this be fix?

I am seeing the same issue. Are there any plans to fix this? It is preventing my project from upgrading to the current version 3.0.1