v2.0.0
- Refactor session lifecycle #787 (adamjmcgrath)
- Rearrange exports for RSC and add experimental RSC route to example #913 (adamjmcgrath)
- Improved callback errors #835 (adamjmcgrath)
- Prevent mixing named exports and own instances #825 (adamjmcgrath)
- Allow to override the user prop in server-side rendered pages #800 (Widcket)
- Return 204 from /api/auth/me when logged out #791 (Widcket)
Added
- Next.js Middlware support #815 (adamjmcgrath)
- Add testing utility for generating session cookies #816 (Widcket)
- Add updateUser #855 (adamjmcgrath)
- Add support for configuring the built-in handlers #826 (Widcket)
- Add support for configuring the default handlers #840 (Widcket)
- Add logout options #877 (adamjmcgrath)
- Add option to not store the ID token by default #809 (Widcket)
- At error cause to AT error when it's from a failed grant #878 (adamjmcgrath)
- Default error handler #823 (adamjmcgrath)
- Allow response customization in afterCallback #838 (adamjmcgrath)
- Improve API docs #796 (Widcket)
- Improve errors #782 (Widcket)
See V2 Migration Guide for full details.