
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 3,180 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.