@alexsun-top/nuxt-auth-layer
v0.1.0
Published
Nuxt 3 preset layer for auth & session manager.
Downloads
3
Readme
Nuxt 3 Auth Layer
Nuxt 3 preset layer for auth & session manager.
Usage
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',
],
})
Configuration
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
|
License
MIT.