Releases: sidebase/nuxt-auth
v1.2.0
What's Changed
- docs: adjust wording about Nuxt 3 / 4 compatibility by @zoey-kaiser in #1072
- docs: README.md changed number of providers to 2. by @sukumaar in #1075
- chore: bump dependencies and switch to Nuxt Module Builder v1 by @phoenix-ru in #1068
- fix: fix docs deploy by @phoenix-ru in #1079
- docs(#1078): update error reference page by @phoenix-ru in #1080
- chore: activate NPM Trusted Publishing by @phoenix-ru in #1081
- chore: bump Node to 24 and replace jsonwebtoken by @phoenix-ru in #1082
New Contributors
Full Changelog: v1.1.1...v1.2.0
v1.1.1
What's Changed
- docs: add documentation about AuthJS adapters by @phoenix-ru in #1059
- fix(#1063): always include browser cookies by default by @phoenix-ru in #1065
- fix(#922): always proxy cookies in signIn and getSession by @phoenix-ru in #1067
Full Changelog: v1.1.0...v1.1.1
v1.1.0
What's Changed
- feat(#1046): Add automatic middleware; fix navigateUnauthenticatedTo by @phoenix-ru in #1054
- fix(#1042,#1052): handle value returned by navigateToAuthPage by @phoenix-ru in #1057
Full Changelog: v1.0.2...v1.1.0
v1.0.2
What's Changed
- fix: restore error bubbling behavior from v1.0.0 by @lendenmc in #1048
- docs: use dynamic version in the Layout by @phoenix-ru in #1050
- feat: enable auto-publishing on NPM after a GitHub release by @phoenix-ru in #1051
New Contributors
Full Changelog: 1.0.1...v1.0.2
1.0.1
What's Changed
- docs: update documentation to 1.0.0 by @phoenix-ru in #1029
- docs: Update session-access.md by @matteioo in #1035
- fix(#1014): limit refreshHandler timers to the max supported browser delay by @phoenix-ru in #1032
- fix: Include cookie headers on session fetch by @silverbackdan in #971
- chore: bump dependencies by @phoenix-ru in #1040
- chore: refactor usage of
statusMessagetomessage; chore: remove redundant code inrefresh-token.server.tsby @phoenix-ru in #1039 - feat: add
proxyCookiesoption for_fetchby @phoenix-ru in #1041 - docs(1044): correction of base url documentation by @lorenzlars in #1044
- release: 1.0.1 by @zoey-kaiser in #1045
New Contributors
- @silverbackdan made their first contribution in #971
- @lorenzlars made their first contribution in #1044
Full Changelog: v1.0.0...1.0.1
v1.0.0
We're excited to share that @sidebase/nuxt-auth has reached its 1.0 release! 🎉
Read more here: #1028
⚠️ Breaking changes
signUp function in local provider
There's a breaking change in local provider signUp function which now only accepts 2 parameters. This is due to signUp having an extra parameter from its initial implementation.
If you used signUp with three parameters, merge the third parameter into the second:
-await signUp(credentials, { external: true }, { preventLoginFlow: true })
+await signUp(credentials, { external: true, preventLoginFlow: true })
-await signUp(credentials, undefined, { preventLoginFlow: true })
+await signUp(credentials, { preventLoginFlow: true })signIn function in authjs provider
This function now always returns an object SignInResult:
interface SignInResult {
error: string | null
status: number
ok: boolean
url: any
}This was done to remove the previously missing | void from the signature, improving type-safety and usability. If you checked for void being returned, adjust your usage accordingly:
const signInResponse = await signIn(/* ... */)
-if (signInResponse) {
+if (signInResponse.error === null) {
// ...
}What's Changed
- feat: return signin response if no redirection by @despatates in #977
- Enh(#843): Allow signup flow return data when preventLoginFlow is true by @iamKiNG-Fr in #903
- chore: display register error message by @DevDengChao in #1015
- bump dependencies by @phoenix-ru in #1016
- chore: refactor useAuth composables to encapsulate context by @phoenix-ru in #1024
- fix(#732): disable server side refresh token plugin when disableServerSideAuth by @xavren in #1021
New Contributors
- @iamKiNG-Fr made their first contribution in #903
- @DevDengChao made their first contribution in #1015
- @xavren made their first contribution in #1021
Full Changelog: 0.10.1...v1.0.0
v1.0.0-rc.1
⚠️ Breaking changes
signUp function in local provider
There's a breaking change in local provider signUp function which now only accepts 2 parameters. This is due to signUp having an extra parameter from its initial implementation.
If you used signUp with three parameters, merge the third parameter into the second:
-await signUp(credentials, { external: true }, { preventLoginFlow: true })
+await signUp(credentials, { external: true, preventLoginFlow: true })
-await signUp(credentials, undefined, { preventLoginFlow: true })
+await signUp(credentials, { preventLoginFlow: true })signIn function in authjs provider
This function now always returns an object SignInResult:
interface SignInResult {
error: string | null
status: number
ok: boolean
url: any
}This was done to remove the previously missing | void from the signature, improving type-safety and usability. If you checked for void being returned, adjust your usage accordingly:
const signInResponse = await signIn(/* ... */)
-if (signInResponse) {
+if (signInResponse.error === null) {
// ...
}What's Changed
- feat: return signin response if no redirection by @despatates in #977
- Enh(#843): Allow signup flow return data when preventLoginFlow is true by @iamKiNG-Fr in #903
- chore: display register error message by @DevDengChao in #1015
- bump dependencies by @phoenix-ru in #1016
- chore: refactor useAuth composables to encapsulate context by @phoenix-ru in #1024
New Contributors
- @iamKiNG-Fr made their first contribution in #903
- @DevDengChao made their first contribution in #1015
Full Changelog: 0.10.1...v1.0.0-rc.1
0.10.1
Summary
This release resolves #990, which occured in release 0.10.0. We improved the url calculation inside #992 to ensure that the configuration of the AuthJS providers lines up with configurations prior to 0.10.0. If you added any workarounds due to issues in 0.10.0, you should be able to revert these now.
What's Changed
- fix(#967): allow
signUpendpoint to be disabled by @root5427 in #968 - feat(local): ⚡ only process signIn callback url when redirect true by @bitfactory-frank-spee in #979
- fix(#970): make redirect implementation match Nuxt's by @phoenix-ru in #985
- fix(#984): allow custom endpoint subpaths for authjs by @phoenix-ru in #986
- release: 0.10.1-alpha.1 by @zoey-kaiser in #987
- docs: fix update default value for enablePeriodically to false by @serhatunver in #993
- docs: fix typos in contributing guide by @serhatunver in #994
- Update quick-start.md by @kingakidi in #996
- fix(docs): typos in types.ts by @volkanakkus in #1003
- fix(#990): use a dedicated
hostcalculation forauthjsby @phoenix-ru in #992 - release: 0.10.1-alpha.2 by @zoey-kaiser in #1005
- release: 0.10.1 by @zoey-kaiser in #1008
New Contributors
- @root5427 made their first contribution in #968
- @serhatunver made their first contribution in #993
- @kingakidi made their first contribution in #996
- @volkanakkus made their first contribution in #1003
Full Changelog: 0.10.0...0.10.1
0.10.1-alpha.2
What's Changed
- docs: fix update default value for enablePeriodically to false by @serhatunver in #993
- docs: fix typos in contributing guide by @serhatunver in #994
- Update quick-start.md by @kingakidi in #996
- fix(docs): typos in types.ts by @volkanakkus in #1003
- fix(#990): use a dedicated
hostcalculation forauthjsby @phoenix-ru in #992 - release: 0.10.1-alpha.2 by @zoey-kaiser in #1005
New Contributors
- @serhatunver made their first contribution in #993
- @kingakidi made their first contribution in #996
- @volkanakkus made their first contribution in #1003
Full Changelog: 0.10.1-alpha.1...0.10.1-alpha.2
0.10.1-alpha.1
What's Changed
- fix(#967): allow
signUpendpoint to be disabled by @root5427 in #968 - feat(local): ⚡ only process signIn callback url when redirect true by @bitfactory-frank-spee in #979
- fix(#970): make redirect implementation match Nuxt's by @phoenix-ru in #985
- fix(#984): allow custom endpoint subpaths for authjs by @phoenix-ru in #986
- release: 0.10.1-alpha.1 by @zoey-kaiser in #987
New Contributors
Full Changelog: 0.10.0...0.10.1-alpha.1