Releases: auth0/nextjs-auth0
Releases · auth0/nextjs-auth0
v1.2.0
Added
- Export
UserContext
for 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:
useUser
hook andUserProvider
to simplify checking and managing the user’s logged in state on the client.withPageAuthRequired
higher order component to protect client side routes.
- New
handleAuth
feature 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
afterRefetch
hook option tohandleProfile
to modify the session after refetching it.
v1.0.0-beta.1
Additions
- Added a new way to configure the custom profile url. Now it can be configured with an environment variable as well.
Changes
- The way to configure the custom login url has changed. Instead of passing it in every call to
withPageAuthRequired
now it can be configured with an environment variable. - The Vercel configuration docs have been updated with the latest guidance.
Fixes
- Fixed a logout issue related to custom IdPs.
v0.16.1
- Updating dependencies with security issues
v1.0.0-beta.0
Install
npm install @auth0/nextjs-auth0@beta
New features
- New suite of frontend tools:
useUser
hook andUserProvider
to simplify checking and managing the user’s logged in state on the client.withPageAuthRequired
higher order component to protect client side routes.
- New
handleAuth
feature 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
Changes
- AggregateError#message from
Issuer.discover
includes stack trace #236 (adamjmcgrath) - Prevent caching the
/me
request #233 (adamjmcgrath) - Added error handling to useUser [SDK-2236] #229 (Widcket)
- Rename loading to isLoading #222 (Widcket)
- Prepare application to be deployable with Vercel #218 (frederikprijck)
- Added withCSRAuthRequired HOC [SDK-2120] #209 (Widcket)
- [SDK-2057] Express mw tests #191 (adamjmcgrath)
- Add withAuth HOC [SDK-2120] #189 (Widcket)
- Add frontend hook tests [SDK-2117] #188 (Widcket)
- Add frontend hook CH: Added #187 (Widcket)