
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
nuxt-basic-auth-module
Advanced tools
Provide basic authentication to your Nuxt.js application
https://www.npmjs.com/package/nuxt-basic-auth-module
$ yarn add nuxt-basic-auth-module # or npm install
Edit your nuxt.config.js
export default {
// ...
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)
},
// ...
}
Whether to activate this module. If false, module registration is skipped.
Basic Auth user name.
The function passes req as an argument and must return the username as string.
Basic Auth user password.
The function passes req as an argument and must return the password as string.
Message to be displayed during basic authentication.
The target path. This allows you to set up basic authentication that is limited to routes that match regular expression literals or where the function returns true.
The function passes req as an argument.
MIT
https://github.com/potato4d/nuxt-basic-auth-module/blob/master/LICENSE
Thanks goes to these wonderful people (emoji key):
Takuma HANATANI 💻 🚧 📖 🐛 | Anthony Fu 💻 | Jleroy 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
1.4.1 (2022-01-06)
FAQs
Provide basic authentication to your Nuxt.js application
The npm package nuxt-basic-auth-module receives a total of 2,416 weekly downloads. As such, nuxt-basic-auth-module popularity was classified as popular.
We found that nuxt-basic-auth-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.