Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@netsells/nuxt-auth

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netsells/nuxt-auth

Enhanced @nuxtjs/auth module with runtime config

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
6
Created
Source

@netsells/nuxt-auth

This package simply builds on the official @nuxtjs/auth module, and adds in runtime config functionality.

NOTE: This package has been updated for v5 of the @nuxtjs/auth module, for @nuxtjs/auth v4 compatibility, check out version 1.x.

Installation

$ yarn add -D @netsells/nuxt-auth

Usage

Setup

Add the module to your nuxt config:

module.exports = {
    modules: [
        '@netsells/nuxt-auth',
    ],
};

Runtime Config

You can then define your config in your publicRuntimeConfig and privateRuntimeConfig respectively. The config follows the same structure as the config you would provide to the module directly, but nested under the auth key. For example:

module.exports = {
    publicRuntimeConfig: {
        auth: {
            strategies: {
                local: {
                    endpoints: {
                        login: {
                            url: `${ process.env.APP_URL }/api/auth/login`,
                        },
                    },
                },
            },
        },
    },
};

Any values in here will be merged with the config passed to the @nuxtjs/auth module.

FAQs

Package last updated on 07 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts