Sun-ZhenXing / nuxt-auth-layer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxt 3 Auth Layer

Nuxt 3 preset layer for auth & session manager.


npm

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.

About

License:MIT License


Languages

Language:TypeScript 98.8%Language:Vue 1.2%