🔐 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:
🙏 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 identifynext-auth
More Info?
For more checkout:
What's Changed
- Docs: improve guest mode example by @KoenCa in #327
- Add initial multi-provider support - supported: authjs + local providers by @BracketJohn in #317
- release: 0.6.0-alpha.0 by @BracketJohn in #328
- fix: imports not beyong runtime level by @BracketJohn in #329
- fix(docs): all links now point to v0.6 and not 0.6 by @BracketJohn in #330
- release: 0.6.0-alpha.1 by @BracketJohn in #331
New Contributors
Full Changelog: 0.5.0...0.6.0-alpha.1