Authentication module for Nuxt.js
- Add
@nuxtjs/auth
dependency using yarn or npm to your project - Add
@nuxtjs/auth
and@nuxtjs/axios
tomodules
section ofnuxt.config.js
{
modules: [
'@nuxtjs/auth',
// ...Axios module should be included AFTER @nuxtjs/auth
'@nuxtjs/axios',
],
auth: {
/* auth options */
}
}
Copyright (c) Nuxt Community