Releases: okta/okta-react
Releases · okta/okta-react
3.0.9
3.0.8
3.0.6
Bug Fixes
- #884 Stores secureReferrerPath in sessionStorage to avoid race condition for multiple tabs
3.0.5
Bug Fixes
- #872 Adjusts
<SecureRoute>
so that it enforces authentication requirement for components passed via "render" or "children" in addition to "component"- NOTE:
<SecureRoute>
, like react-router<Route>
, only wants ONE of the three ways of passing wrapped components per route - This should also address cases where components loaded through SecureRoute were being unnecessarily unmounted/remounted
- NOTE:
3.0.4
3.0.3
3.0.2
Bug Fixes
- [#802]
- The minimum version of okta-auth-js is updated to 3.1.2 from 3.0.0 to help address an issue with overlapping PKCE renewal requests.
<SecureRoute>
should now pass the same react-router properties to wrapped components that<Route>
does.- Passing custom props to a component using the
render
property of<SecureRoute>
should now work
3.0.1
Features
- [#738]
<LoginCallback/>
now accepts an optionalerrorComponent
prop that accepts a component that can be passed anerror
object.- By default
<LoginCallback/>
will render with the<OktaError/>
component
- By default
Bug Fixes
<LoginCallback>
now triggers only afterauthState.isPending
is false, removing the problem of an error message from parsing the tokens from the url being cleared by the pendingauthState
determination. See #719- [#738]
<Security>
now memoizes if it creates an instance ofAuthService
so as to not create new instances on re-renders
3.0.0
Breaking Changes
- Uses/requires
@okta/okta-auth-js
3.x- Notably, this means pkce now defaults to true
- See the @okta/okta-auth-js README regarding PKCE OAuth2 Flow for requirements
- The settings for the Application on your Okta Admin Dashboard must include allowing PKCE
- If you are using the (previous default) Implicit Flow, you should set
pkce: false
<Security>
no longer creates a<div>
wrapper around its children- The className property of
<Security>
is no longer used - Existing applications that rely on this
<div>
can add it themselves as a parent or direct child of<Security>
- The className property of
2.0.1
Bug Fixes
- LoginCallback: render error as string (#700)