Releases: auth0/nextjs-auth0
Releases · auth0/nextjs-auth0
v1.6.0
Added
- SDK-2818 Export error classes #508 (adamjmcgrath)
- SDK-2529 Add ability to pass custom params to refresh grant and code exchange #507 (adamjmcgrath)
- SDK-2813 Add afterRefresh hook #506 (adamjmcgrath)
Fixed
v1.5.0
v1.4.2
Fixed
- Fix reflected XSS from the callback handler's error query parameter CVE-2021-32702 (adamjmcgrath)
v1.4.0
Added
withPageAuthRequiredCSR now addsuserto wrapped component props #405 (adamjmcgrath)
Fixed
- env var substitutions now means you can define
AUTH0_BASE_URLfromVERCEL_URLinnext.config.js#404 (adamjmcgrath)
v1.3.1
Fixed
- Use
window.location.toString()as the defaultreturnTovalue #370 (Widcket) returnToshould be encoded as it contains url unsafe chars #365 (adamjmcgrath)
v1.3.0
Added
- Organizations support #343 (adamjmcgrath)
v1.2.0
Added
- Export
UserContextfor overriding default hook initialisation behaviour #325 (adamjmcgrath)
Fixed
v1.1.0
Added
Fixed
- Chunked cookies should not exceed browser max #301 (adamjmcgrath)
- Cleanup unused cookies when switching between chunked and unchunked #303 (adamjmcgrath)
- New tokens should be applied to existing session after handleProfile #307 (adamjmcgrath)
v1.0.0
New features
- New suite of frontend tools:
useUserhook andUserProviderto simplify checking and managing the user’s logged in state on the client.withPageAuthRequiredhigher order component to protect client side routes.
- New
handleAuthfeature to reduce the amount of boilerplate required to set up the server side authentication handlers. - Simpler server side API where creation of an SDK instance is handled by the SDK.
Breaking changes
For a full list of breaking changes and migration guide, checkout the V1_MIGRATION_GUIDE.md
v1.0.0-beta.2
Additions
- Added
afterRefetchhook option tohandleProfileto modify the session after refetching it.