github sidebase/nuxt-auth 0.6.0

latest releases: v1.0.2, 1.0.1, v1.0.0...
22 months ago

🔐 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 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

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

What's Changed

New Contributors

Full Changelog: 0.5.0...0.6.0

Don't miss a new nuxt-auth release

NewReleases is sending notifications on new releases.