59
GitHub - potato4d/nuxt-basic-auth-module: Provide basic auth your Nuxt.js applic...
source link: https://github.com/potato4d/nuxt-basic-auth-module
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Nuxt.js basic auth module
Provide basic authentication to your Nuxt.js application
https://www.npmjs.com/package/nuxt-basic-auth-module
Installation
$ yarn add nuxt-basic-auth-module # or npm install
Usage
Edit your nuxt.config.js
module.exports = { // ... modules: [ 'nuxt-basic-auth-module' ], basic: { name: 'AUTH USER NAME HERE', pass: 'AUTH PASSWORD HERE', enabled: process.env.BASIC_ENABLED === 'true' // require boolean value(nullable) }, // ... }
License
MIT
https://github.com/potato4d/nuxt-basic-auth-module/blob/master/LICENSE
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK