This changelog is incomplete for alpha releases. Use the GitHub Releases page for full history.
-
Renamed
useUserSignIn()touseSignIn(). -
Renamed
useUserSignUp()touseSignUp(). -
Renamed
getAppSession()togetRequestSession(). -
Renamed memoized request context key from
event.context.appSessiontoevent.context.requestSession. -
Removed
errorMessagefromuseSignIn()anduseSignUp()action handles. Useerror.value?.message. -
Removed OAuth provider aliases such as
useSignIn('github'). UseuseSignIn('social')and pass the provider inexecute().Migration:
// before const signInEmail = useUserSignIn('email') const signUpEmail = useUserSignUp('email') const appSession = await getAppSession(event) const memoized = event.context.appSession // after const signInEmail = useSignIn('email') const signUpEmail = useSignUp('email') const requestSession = await getRequestSession(event) const memoized = event.context.requestSession // before await useSignIn('github').execute({ callbackURL: '/app' }) // after await useSignIn('social').execute({ provider: 'github', callbackURL: '/app' }) // before const message = errorMessage.value ?? 'Please try again.' // after const message = error.value?.message ?? 'Please try again.'
- Added strict provider typing for
useSignIn('social').execute()from configuredsocialProviderskeys. - Added social
callbackURLauto-fill when omitted: safe?redirect=first, thenauth.redirects.authenticated. - Added
AuthSocialProviderIdto#nuxt-better-authexports for direct provider-id typing in Nuxt apps.
- Restored
auth.redirectsas global redirect fallbacks (route-levelredirectTostill takes precedence).
- Fixed hardcoded paths in published package (0.0.1 was published with stub build)