Skip to content

Releases: sidebase/nuxt-auth

0.5.0-rc.0

04 Apr 08:59
5be369b

Choose a tag to compare

This is the first release candidate of 0.5.0.

Breaking change: useSession was renamed to useAuth

The useSession composable is deprecated. useSession is now called useAuth:

const { status } = useAuth()

To upgrade:

  1. install the latest module version
  2. replace all useSession composable calls with useAuth
  3. Clean the nuxt cache (rm -r .nuxt ) so that it correctly picks up the renaming

Addition: Guest Mode

You can now use guest mode on your pages:

definePageMeta({
  auth: {
    unauthenticatedOnly: true,
    navigateAuthenticatedTo: '/profile'
  }
})

More extended release notes will follow with the general release.

What's Changed

New Contributors

Full Changelog: 0.4.4...0.5.0-rc.0

0.4.4

15 Mar 17:14
da304d9

Choose a tag to compare

🔐 nuxt-auth is an authentication package for Nuxt 3. It provides oauth sign-in, credential sign-in and magic-email sign-in flows. Read more: https://sidebase.io/nuxt-auth/getting-started

This is patch release 0.4.4. It does not contain breaking changes. To use the new version follow the installation instructions:

# install the new release of `nuxt-auth`
npm i -D @sidebase/[email protected]

# install `next-auth` as a peer-dependency if you haven't already done so
npm i [email protected]

What's Changed

New Contributors

Full Changelog: 0.4.3...0.4.4

0.4.3

06 Mar 16:25
aaaa6c7

Choose a tag to compare

🔐 nuxt-auth is an authentication package for Nuxt 3. It provides oauth sign-in, credential sign-in and magic-email sign-in flows. Read more: https://sidebase.io/nuxt-auth/getting-started

This is patch release 0.4.3. It does not contain breaking changes. To use the new version follow the installation instructions:

# install the new release of `nuxt-auth`
npm i -D @sidebase/[email protected]

# install `next-auth` as a peer-dependency if you haven't already done so
npm i [email protected]

What's Changed

🚀 Enhancements

🩹 Fixes & Chores

📝 Documentation

All Commits

New Contributors

Full Changelog: 0.4.2...0.4.3

0.4.2

20 Feb 12:16
bd0438d

Choose a tag to compare

🔐 nuxt-auth is an authentication package for Nuxt 3. It provides oauth sign-in, credential sign-in and magic-email sign-in flows. Read more: https://sidebase.io/nuxt-auth/getting-started

This is patch release 0.4.2. It does not contain breaking changes. To use the new version follow the installation instructions:

# install the new release of `nuxt-auth`
npm i -D @sidebase/[email protected]

# install `next-auth` as a peer-dependency if you haven't already done so
npm i [email protected]

What's Changed

🩹 Fixes & Chores

📝 Documentation

  • Documentation update: Update 4.custom-session-data.md by @jorgv in #206

New Contributors

Full Changelog: 0.4.1...0.4.2

0.4.1

09 Feb 09:44
c231ae8

Choose a tag to compare

🔐 nuxt-auth is an authentication package for Nuxt 3. It provides oauth sign-in, credential sign-in and magic-email sign-in flows. Read more: https://sidebase.io/nuxt-auth/getting-started

This is patch release 0.4.1. It does not contain breaking changes. To use the new version follow the installation instructions:

# install the new release of `nuxt-auth`
npm i -D @sidebase/[email protected]

# install `next-auth` as a peer-dependency if you haven't already done so
npm i [email protected]

Checkout the 0.4.0 release notes for the recent, big changes released yesterday.

What's Changed

🩹 Fixes & Chores

📝 Documentation

  • docs: better instructions for peer dep for non-npm package managers by @BracketJohn in #221

All Commits

Full Changelog: 0.4.0...0.4.1

0.4.0

08 Feb 11:33
6f3bb50

Choose a tag to compare

nuxt-auth is an authentication package for Nuxt 3. It provides oauth sign-in, credential sign-in and magic-email sign-in flows. Read more: https://sidebase.io/nuxt-auth/getting-started

This is a minor release 0.4.0 because it:

  • makes next-auth a peer dependency
  • bumps nuxt to 3.1
  • starts the switch from NextAuthHandler AuthHandler

In addition, this release includes a bunch of features & fixes 🚀

🚨 Breaking Changes

next-auth is a peer-dependency now, so with package managers other than npm you need to manually install it. So, to use the new version:

# install the new release of `nuxt-auth`
npm i -D @sidebase/[email protected]

# install `next-auth` as a peer-dependency
npm i [email protected]

See the full docs here: https://sidebase.io/nuxt-auth/getting-started

What's Changed

🚀 Enhancements

🩹 Fixes & Chores

📝 Documentation

All Commits

New Contributors

Full Changelog: 0.3.4...0.4.0

0.3.4

16 Jan 08:26
1d30d6e

Choose a tag to compare

What's Changed

nuxt-auth is an authentication package for Nuxt 3. It provides oauth sign-in, credential sign-in and magic-email sign-in flows. Read more: https://sidebase.io/nuxt-auth/getting-started.

This is release 0.3.4: There are no breaking changes in this release.

To use the new version:

npm i -D @sidebase/[email protected]

What's changed

🩹 Fixes & Chores

  • basePath now correctly works for server- and non-server-routes #156
  • release: 0.3.4 by @BracketJohn in #161

All Commits

New Contributors

Full Changelog: 0.3.3...0.3.4

0.3.3

05 Jan 11:49
86c5677

Choose a tag to compare

nuxt-auth is an authentication package for Nuxt 3. It provides oauth sign-in, credential sign-in and magic-email sign-in flows. Read more: https://sidebase.io/nuxt-auth/getting-started.

This is release 0.3.3:

  • there are no breaking changes in this release,
  • there is one fixed CVE in this release

To use the new version:

npm i -D @sidebase/[email protected]

What's changed

There's a number of new features, fixes and docs-updates as well as one security-update.

🚀 Enhancements

🩹 Fixes & Chores

  • origin is correctly inferred and warning for it missing is correctly displayed #136
  • resolve "nuxt instance undefined" by not using an async composables in auth middleware by @BracketJohn in #136
  • resolve ERR_HTTP_HEADERS_SENT by @BracketJohn in #136
  • attempt lazy auth-handler setup if getServerSession is called befor any auth endpoint @BracketJohn in #125
  • chore: bump eslint and ufo by @BracketJohn in #126
  • fix(middleware): redirect to signIn without using location.replace by @JoaoPedroAS51 in #127
  • chore: update deps nuxt/kit and defu by @BracketJohn in #138
  • provide type for disabling global auth middleware by @BracketJohn in #139
  • chore(deps-dev): bump eslint from 8.30.0 to 8.31.0 by @dependabot in #146
  • Release 0.3.3 by @BracketJohn in #147

🔒 Security

  • resolve CVE-2022-46175 by @BracketJohn in #142
    • parse5 problem of the sub-dep @nuxt/kit
    • no impact on module-users: was only used in an internal build-step, not during production

All Commits

New Contributors

Full Changelog: 0.3.2...0.3.3

0.3.2

23 Dec 16:55
5fc1cfd

Choose a tag to compare

To use:

npm i -D @sidebase/[email protected]

This is a small follow-up release to 0.3.2 that attempts to fix a longer standing content-flash issue by faking a navigateTo. The full analysis for this problem can be seen in #100.

What's Changed

  • fix: avoid content-flash of protected pages by faking a navigateTo (0568254)
  • docs: improve getServerSession docs by showing how to pass along cookies during universal rendering by @BracketJohn in #124
  • docs: point to sidebase as easy way to start (6980e15)

Full Changelog: 0.3.1...0.3.2

0.3.1

23 Dec 13:04

Choose a tag to compare

To use:

npm i -D @sidebase/[email protected]

Main impact of this release is:

  1. Better Session typing: With this release Session typing is now correctly inferred thanks to @JoaoPedroAS51 in #115. This means that custom typing of the session will now work:

    import NextAuth, { DefaultSession } from "next-auth";
    
    declare module "next-auth" {
      interface Session {
        user: {
          /** The user's postal address. */
          address: string
        } & DefaultSession["user"]
      }
    }

    Then in code .address becomes available:
    image

  2. Fix redirect: false being ignored for signIn and signOut: There was a bug that effectively lead to redirect: false being ignored on signIn and signOut. This releases fixes this which in turn allows you to for example perform a custom signIn flow or handle sign in errors yourself. See the new documentation on this:
    image

Commits

  • fix: catch errors and retrieve their data on signIn, signOut by @BracketJohn in #122
  • fix: use type Session from next-auth by @JoaoPedroAS51 in #115
  • feat(playground): add example custom sign in page by @BracketJohn in #96
  • feat(docs): cleanup readme, dont repeat same claim multiple times by @BracketJohn in #98
  • fix(docs): finish intro sentence by @BracketJohn in #101
  • fix(docs): Removed index page of docs from mobile sidebar by @zoey-kaiser in #105
  • feat(docs): improve .default ts ignore by replacing it with ts expect error by @BracketJohn in #114
  • feat(docs): state more clearly that this lib is for non-static libraries, state more clearly that next auth ressources can be used by @BracketJohn in #121

Full Changelog: 0.3.0...0.3.1