Skip to content

Releases: sidebase/nuxt-auth

0.6.0-beta.6

23 Sep 10:20
92f44bc

Choose a tag to compare

0.6.0-beta.6 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.6.0-beta.5...0.6.0-beta.6

0.6.0-beta.5

30 Aug 14:33
55aee8a

Choose a tag to compare

0.6.0-beta.5 Pre-release
Pre-release

This is a small release, which fixes an issue with the session already being fetched during nitro prerender. This would cause issues in the application.

What's Changed

New Contributors

  • @genu made their first contribution in #521

Full Changelog: 0.6.0-beta.4...0.6.0-beta.5

0.6.0-beta.4

09 Aug 14:47
7234c66

Choose a tag to compare

0.6.0-beta.4 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.6.0-beta.3...0.6.0-beta.4

0.6.0-beta.3

26 Jun 08:38
42f68b2

Choose a tag to compare

0.6.0-beta.3 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.6.0-beta.2...0.6.0-beta.3

0.6.0-beta.2

15 May 11:11
2f80e95

Choose a tag to compare

0.6.0-beta.2 Pre-release
Pre-release

What's Changed

Full Changelog: 0.6.0-beta.1...0.6.0-beta.2

0.6.0-beta.1

12 May 08:09
ab66a57

Choose a tag to compare

0.6.0-beta.1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.6.0-beta.0...0.6.0-beta.1

0.6.0-beta.0

02 May 15:20
952a60a

Choose a tag to compare

0.6.0-beta.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.6.0-alpha.2...0.6.0-beta.0

0.6.0-alpha.2

22 Apr 21:56
6acd0f9

Choose a tag to compare

0.6.0-alpha.2 Pre-release
Pre-release

What's Changed

  • docs: add azure AD example by @thomasfjordside in #332
  • Improve v0.6. local provider: correctly bundle types into final package, unset token when getsession fails and more by @BracketJohn in #347
    • improves directory structure for testing and development
      • local playground
      • authjs playground
    • fix: not all properties of local provider are required any longer
    • fix: move types into runtime so that final dist gets correct types
    • fix: unset token on unsuccessful session fetch
    • fix: also send auth headers on signout
  • release: 0.6.0-alpha.2 by @BracketJohn in #348

New Contributors

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

0.6.0-alpha.1

17 Apr 19:06
b0ae52d

Choose a tag to compare

0.6.0-alpha.1 Pre-release
Pre-release

🔐 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/v0.6/getting-started

This is a pre-release of v0.6.0 of the nuxt-auth module. Notably, it introduces:

  • static Nuxt 3 app support
  • local provider support
  • multi-provider support to facilitate the above -> extensible for future providers
  • new and improved docs

To use the new version follow the installation instructions. Here's a small spoiler of what the new module has in store:
image

🙏 Please help test & stabilize this version - need to run a static Nuxt 3 app? Need a simple local provider? That would be a great test-case for this module 🙏

Note: This is still an early version, it will still be rough and is not production ready. Liberally file issues for this version or contact us on discord (https://discord.gg/NDDgQkcv3s)

Example: Provider authjs

This is what <= v0.5 used as the only possible provider.

export default defineNuxtConfig({
    modules: ['@sidebase/nuxt-auth'],
    auth: {
        provider: {
            type: 'authjs'
        }
    }
})

Example: Provider local

This is the new provider that supports static username + password flows. Static OAuth is not yet supported.

export default defineNuxtConfig({
    modules: ['@sidebase/nuxt-auth'],
    auth: {
        provider: {
            type: 'local'
        }
    }
})

Breaking changes?

There's a few breaking changes in comparison to v0.5.0 of the module. If you are used to v0.5 or below the biggest change will be:

  • the module-config-structure.
  • using authjs to identify next-auth

More Info?

For more checkout:

What's Changed

New Contributors

Full Changelog: 0.5.0...0.6.0-alpha.1

0.5.0

15 Apr 11:27
e4f96eb

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 the minor release 0.5.0. It contains 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]

Whats changed

🚨 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
  4. Run npm run dev and you are good to go

Feature: Guest Mode

You can now use guest mode on your pages:

// file: ~/pages/login.vue
definePageMeta({
  auth: {
    unauthenticatedOnly: true,
    navigateAuthenticatedTo: '/profile'
  }
})

This will only allow unauthenticated "guests" to visit the /login page and redirect all other users to /profile instead. Full docs here: https://sidebase.io/nuxt-auth/application-side/guest-mode

All changes

New Contributors

Full Changelog: 0.4.4...0.5.0