Skip to content

Releases: okta/okta-react

3.0.9

09 Nov 22:41
0884b00
Compare
Choose a tag to compare

Bug Fixes

  • #17 fixes authState.isPending issue in login/logout process

3.0.8

07 Oct 21:49
Compare
Choose a tag to compare

Bug Fixes

  • #903 fixes SecureRoute to not require authentication unless the route matches

Other

  • Upgrades internal dependencies

3.0.6

30 Sep 22:06
d895fde
Compare
Choose a tag to compare

Bug Fixes

  • #884 Stores secureReferrerPath in sessionStorage to avoid race condition for multiple tabs

3.0.5

30 Sep 22:06
a5880c6
Compare
Choose a tag to compare

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

3.0.4

30 Sep 22:07
f26e777
Compare
Choose a tag to compare

Bug Fixes

  • #848 Removes onSessionExpired behavior. See the README for details

3.0.3

30 Sep 22:08
aed57b3
Compare
Choose a tag to compare

Bug Fixes

  • #826 Fix stale authState in React context by listening on expired event from authJs.tokenManager, then update the authState in context properly.

3.0.2

30 Sep 22:08
c3244d8
Compare
Choose a tag to compare

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

30 Sep 22:09
8030421
Compare
Choose a tag to compare

Features

  • [#738] <LoginCallback/> now accepts an optional errorComponent prop that accepts a component that can be passed an error object.
    • By default <LoginCallback/> will render with the <OktaError/> component

Bug Fixes

  • <LoginCallback> now triggers only after authState.isPending is false, removing the problem of an error message from parsing the tokens from the url being cleared by the pending authState determination. See #719
  • [#738] <Security> now memoizes if it creates an instance of AuthService so as to not create new instances on re-renders

3.0.0

30 Sep 22:10
2610c8b
Compare
Choose a tag to compare

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>

2.0.1

30 Sep 22:11
f6a18eb
Compare
Choose a tag to compare

Bug Fixes

  • LoginCallback: render error as string (#700)