Skip to content

Upgrade to v3

✨ New features

  • Add auth:error and auth: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 and github - source.
  • Add auth:fetchError nuxt hook - source.
  • Define types of route middleware auth and guest - source.

⚠️ Breaking changes

  • Rename the RefreshToken data model to Session - 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 from Date to string - 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 to registration.enabled - source.
  • Remove purge of expired sessions - source.
  • Remove custom email provider - source.
  • Remove internal prisma instantiation - source.
  • Remove useAuthFetch composable - source.