AuthKit React Router SDK
The AuthKit React Router SDK provides utilities for integrating AuthKit authentication into React Router 7+ applications.
Refer to the AuthKit documentation for detailed usage instructions and examples.
Beta Versions
Certain WorkOS features may be available only in the beta version of the SDK. Beta versions have the-beta.* suffix, for example,
3.2.0-beta.1. For more information on how to use beta
versions, refer to the README in the GitHub repository.
Releases
v0.12.1
Latestv0.12.0
What's Changed
- chore: Pin third-party GitHub Actions to full commit SHAs by @devin-ai-integration[bot] in #71
- Add runtime feature flag support by @stanleyphu in #72
New Contributors
- @stanleyphu made their first contribution in #72
Full Changelog: v0.11.0...v0.12.0
v0.11.0
What's Changed
- Add context7.json to repo by @nicknisi in #55
- feat: enable npm Trusted Publishers by @nicknisi in #56
- Remove deprecated Coana workflows by @gjtorikian in #66
- Implement PKCE and sealed OAuth state flow by @devin-ai-integration[bot] in #68
- v0.11.0 by @nicknisi in #70
New Contributors
- @gjtorikian made their first contribution in #66
- @devin-ai-integration[bot] made their first contribution in #68
Full Changelog: v0.10.0...v0.11.0
v0.10.0
What's Changed
- feat: Add
organizationIdtoonSuccesscallback by @nicknisi in #43 - feat: Add
saveSessionfor manual auth flows by @chaance in #52 - fix: Unwrap nested data response from React Router by @DennisKraaijeveld in #44
New Contributors
- @chaance made their first contribution in #48
- @DennisKraaijeveld made their first contribution in #44
- @ryanvanoss made their first contribution in #42
Full Changelog: v0.9.0...v0.10.0
v0.9.0
What's Changed
- Fix infinite redirects with load balancer TLS termination by @nicknisi in #39
- Add roles from JWT payload by @atainter in #40
- v0.9.0 by @atainter in #41
New Contributors
- @atainter made their first contribution in #40
Full Changelog: v0.8.1...v0.9.0
v0.8.1
What's Changed
- fix: use fresh user data when refreshing sessions by @nicknisi in #36
Full Changelog: v0.8.0...v0.8.1
v0.8.0
What's Changed
- Fix: Preserve return pathname on session refresh failure by @nicknisi in #31
- fix: return null user when access token is expired in withAuth by @nicknisi in #32
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
This version implements security improvements to the authentication system.
Changes
- Modified the authentication data structure to improve security
- Added a new
getAccessToken()function for explicit access to authentication data - Updated documentation with security best practices
Breaking Changes
⚠️ This is a breaking change for applications that rely on access tokens being available in loader data.
See the updated README for migration instructions.
Full Changelog: v0.6.1...v0.7.0
v0.6.1
What's Changed
- Fix organization ID preservation during token refresh by @nicknisi in #27
Full Changelog: v0.6.0...v0.6.1
v0.6.0
What's Changed
- Add support for
feature_flagsclaim by @kkajla12 in #25
Full Changelog: v0.5.0...v0.6.0
v0.5.0
What's Changed
- Add Session Refresh Callbacks by @nicknisi in #23
- Allow configuring session storage on callback route by @nicknisi in #22
Full Changelog: v0.4.1...v0.5.0
v0.4.1
v0.4.0
What's Changed
- Add withAuth Helper Function by @nicknisi in #16
- Docs: Fix typo in react router authkit example link by @heatherfaerber in #17
New Contributors
- @heatherfaerber made their first contribution in #17
Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
- Pin third-party actions to currently used SHA by @nickcollisson-workos in #10
- Add returnTo argument to signOut method by @nicknisi in #13
- v0.3.0 by @nicknisi in #14
New Contributors
- @nickcollisson-workos made their first contribution in #10
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Add switchToOrganization and refreshSession helpers to library by @nicknisi in #11
Full Changelog: v0.1.1...v0.2.0
v0.1.1
What's Changed
- fix: pass through non-json responses without modifying the body by @nicknisi in #8
- v0.1.1 by @nicknisi in #9
Full Changelog: v0.1.0...v0.1.1
v0.1.0
What's Changed
- First public release of authkit-react-router
- add CODEOWNERS, update bug report issue template by @nicknisi in #4
New Contributors
- @nicknisi made their first contribution in #4
Full Changelog: v0.1.0-alpha.0...v0.1.0
v0.1.0-alpha.0
Pre-releaseThis is a prerelease preview of authkit-react-router. If you encounter bugs, please file an issue.
Full Changelog: https://github.com/workos/authkit-react-router/commits/v0.1.0-alpha.0