potato4d / nuxt-basic-auth-module

Provide basic auth your Nuxt.js application
https://www.npmjs.com/package/nuxt-basic-auth-module
MIT License
311 stars 9 forks source link

Pulling project into Nuxt Universal App and not running with default data #121

Closed Kurtmcmurt closed 4 years ago

Kurtmcmurt commented 4 years ago

Hi all,

I've read the docs - there aren't many as its simple! But I've been trying to get this working for the last couple of hours, I had yarn add'd the module, listed the module under 'modules' in the nuxt config file, added the following to the project:

basic: { name: 'AUTH USER NAME HERE', pass: 'AUTH PASSWORD HERE', enabled: process.env.BASIC_ENABLED === 'true' // require boolean value(nullable) },

And no prompts are showing on app refresh, I've cleared the cache, restarted the app, nothign to seems to work and I'm not sure where to go from here. Any and all help appreciated.

EDIT: No errors are appearing in console.

Many thanks, Kurtis Rogers