v1.0.0-beta.0
Pre-release
Pre-release
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)