Nuxt 3 preset layer for auth & session manager.
Add @alexsun-top/nuxt-auth-layer
to your project:
pnpm add -D @alexsun-top/nuxt-auth-layer
Add the layer to your Nuxt project:
// nuxt.config.ts
export default defineNuxtConfig({
// ...
extends: [
'@alexsun-top/nuxt-auth-layer',
],
})
You can disable some of the dependencies by setting the following environment variables:
Environment Variable | Package |
---|---|
AUTH_DISABLE_AUTHJS |
@hebilicious/authjs-nuxt |
AUTH_DISABLE_SESSION |
@sidebase/nuxt-session |
AUTH_DISABLE_SECURITY |
nuxt-security |
MIT.