Skip to content

Releases: sidebase/nuxt-auth

v1.0.0

27 Jun 15:46
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 0.10.1...v1.0.0

v1.0.0-rc.1

05 Jun 15:02
Compare
Choose a tag to compare
v1.0.0-rc.1 Pre-release
Pre-release

⚠️ 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

New Contributors

Full Changelog: 0.10.1...v1.0.0-rc.1

0.10.1

13 Mar 11:45
506f9b1
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 0.10.0...0.10.1

0.10.1-alpha.2

06 Mar 10:40
51f874c
Compare
Choose a tag to compare
0.10.1-alpha.2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.10.1-alpha.1...0.10.1-alpha.2

0.10.1-alpha.1

16 Jan 17:28
c3e9d54
Compare
Choose a tag to compare
0.10.1-alpha.1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.10.0...0.10.1-alpha.1

0.10.0

19 Dec 18:23
8d31537
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: 0.9.4...0.10.0

0.10.0-rc.2

12 Dec 18:22
985c497
Compare
Choose a tag to compare
0.10.0-rc.2 Pre-release
Pre-release

What's Changed

  • chore: upgrade to nitro 2.10, preparing for nitropack ecosystem switch from nitropack to nitro 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

12 Dec 16:28
f5c3326
Compare
Choose a tag to compare
0.10.0-rc.1 Pre-release
Pre-release

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

New Contributors

Full Changelog: 0.9.4...0.10.0-rc.1

0.9.4

17 Oct 17:49
a4b2b2e
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.9.3...0.9.4

0.9.3

19 Sep 18:53
a070447
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.9.2...0.9.3