Installation

Add the following modules to your project:

Yarn
yarn add @nuxt-alt/auth @nuxt-alt/http
NPM
npm install @nuxt-alt/auth @nuxt-alt/http

Then add the following to your nuxt config

export default defineNuxtConfig({
    modules: [
        '@nuxt-alt/auth'
    ],
    auth: {
        /* module options */
    }
});
@nuxt-alt/http is required for @nuxt-alt/auth to function, you do not need to specify it in modules as it will be automatically added if not specififed, but it needs to be added to your packages.
@pinia/nuxt and pinia is also optional to use, if you aren't using pinia then nuxt's useState will be used instead. If you are using pinia it has to be added to module below @nuxt-alt/auth