Upgrade to v3
✨ New features
- Add
auth:error
andauth:registration
nitro hooks - source. - Add Email action timeout - source.
- Allow usage of custom data layer - source.
- Add
unstorage
database adapter - source. - Add
prisma
database adapter - source. - Add
emailValidationRegex
for email validation on registration - source. - Define types of known OAuth options for
google
andgithub
- source. - Add
auth:fetchError
nuxt hook - source. - Define types of route middleware
auth
andguest
- source.
⚠️ Breaking changes
- Rename the
RefreshToken
data model toSession
- source. - Change response of GET sessions endpoint - source.
- Change the return value of
useAuthSession().getAllSessions
- source. - Change path of session endpoints - source.
- Rename
#auth
to#auth_utils
- source. - Change
event.context.auth
definition - source. - Set default email provider to
hook
- source. - Change types
createdAt
updatedAt
of User state fromDate
tostring
- source. - Avoid registration of server handlers when respective configuration missing - source.
- Change server response error messages - source.
- Only accept
.html
custom email templates - source. - Rename
registration.enable
toregistration.enabled
- source. - Remove purge of expired sessions - source.
- Remove
custom
email provider - source. - Remove internal prisma instantiation - source.
- Remove
useAuthFetch
composable - source.