@netsells/nuxt-auth-controller
v3.0.0
Published
[![NPM version][npm-image]][npm-url]
Downloads
4
Keywords
Readme
Nuxt Auth Controller
An easier approach to set up Auth within your Nuxt and Adonis project
Installation
Install via the adonis cli
$ npx @adonisjs/cli install @netsells/nuxt-auth-controller --yarn
Also install the auth package you wish to use:
yarn add -D @netsells/nuxt-auth
Usage
Make sure to register the provider inside start/app.js
file.
const providers = [
// Other providers
'@netsells/nuxt-auth-controller/adonis/providers/AuthControllerProvider',
];
Edit nuxt.config.js
modules: [
'@netsells/nuxt-auth-controller',
],
Config
The config file is saved as config/nuxt-auth.js
make sure to update all paths for the auth and client credentials.