Releases: sidebase/nuxt-auth
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
signUp
endpoint 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
host
calculation forauthjs
by @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
host
calculation forauthjs
by @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
signUp
endpoint 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
0.10.0
Upgrading
Hi everyone 👋
This release contains breaking changes for the default middleware and the configuration of baseURL
and AUTH_ORIGIN
.
We prepared a full upgrade guide, that can be found here.
What's Changed
- docs(fix): use correct process env variable for baseUrl by @felixranesberger in #940
- enh(#895): Custom refresh response token pointer by @Rizzato95 in #910
- feat(#797, #878): set
baseURL
via environment variables and improve internal url detection by @zoey-kaiser in #913 - chore(#892): rename middleware to avoid conflicts by @zoey-kaiser in #957
- enh(#935): allow external login page by @Thomas-Philippot in #936
- release: 0.10.0-rc.1 by @zoey-kaiser in #958
- chore: upgrade to nitro 2.10, preparing for nitropack ecosystem switch from
nitropack
tonitro
by @BracketJohn in #942 - fix(#927): fix the warnings produced by Nuxt when awaiting runtime config by @phoenix-ru in #959
- release: 0.10.0-rc.2 by @zoey-kaiser in #960
- docs: update installation.md by @s0h311 in #955
- feat: ✨ add flag to disable getSession after signIn on local / refresh provider by @bitfactory-frank-spee in #702
- doc: adjust docs for the 0.10.0 release by @zoey-kaiser in #963
- release: 0.10.0 by @zoey-kaiser in #965
New Contributors
- @felixranesberger made their first contribution in #940
- @Rizzato95 made their first contribution in #910
- @Thomas-Philippot made their first contribution in #936
- @s0h311 made their first contribution in #955
- @bitfactory-frank-spee made their first contribution in #702
Full Changelog: 0.9.4...0.10.0
0.10.0-rc.2
What's Changed
- chore: upgrade to nitro 2.10, preparing for nitropack ecosystem switch from
nitropack
tonitro
by @BracketJohn in #942 - fix(#927): fix the warnings produced by Nuxt when awaiting runtime config by @phoenix-ru in #959
- release: 0.10.0-rc.2 by @zoey-kaiser in #960
Full Changelog: 0.10.0-rc.1...0.10.0-rc.2
0.10.0-rc.1
Upgrade guide
This release contains breaking changes releated to the middleware and the baseURL
/ AUTH_ORIGIN
configuration. Please check the following PRs for more information:
What's Changed
- docs(fix): use correct process env variable for baseUrl by @felixranesberger in #940
- enh(#895): Custom refresh response token pointer by @Rizzato95 in #910
- feat(#797, #878): set
baseURL
via environment variables and improve internal url detection by @zoey-kaiser in #913 - chore(#892): rename middleware to avoid conflicts by @zoey-kaiser in #957
- enh(#935): allow external login page by @Thomas-Philippot in #936
- release: 0.10.0-rc.1 by @zoey-kaiser in #958
New Contributors
- @felixranesberger made their first contribution in #940
- @Rizzato95 made their first contribution in #910
- @Thomas-Philippot made their first contribution in #936
Full Changelog: 0.9.4...0.10.0-rc.1
0.9.4
What's Changed
- fix: violations of upcoming
eslint/no-else-return
oxlint rule by @DonIsaac in #921 - fix(#926): correct and clarify Guest Mode by @phoenix-ru in #929
- release: 0.9.4 by @zoey-kaiser in #930
Full Changelog: 0.9.3...0.9.4
0.9.3
What's Changed
- docs: correct location of session data type definitions by @cngJo in #904
- docs(#906): clarify
origin
documentation by @phoenix-ru in #908 - enh: provide a demo implementation of refresh provider by @phoenix-ru in #901
- docs: fix refreshRequestTokenPointer example by @zoey-kaiser in #912
- docs: laravel-passport.md fix "Learn more" issue link by @holtolee in #909
- enh(#861): Redirect back to requested page after authentication by @andychukse in #870
- release: 0.9.3 by @zoey-kaiser in #916
New Contributors
- @cngJo made their first contribution in #904
- @holtolee made their first contribution in #909
- @andychukse made their first contribution in #870
Full Changelog: 0.9.2...0.9.3