
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
adonis-auth-builder
Advanced tools
Painless authentication generator for your Adonis.js app available to you in one sexy command.

Adonis auth scaffold offers you painless authentication
Spend those minutes you'd use in setting up authentication doing awesome stuff within your app.
app
└── Controllers
└── HTTP
├── AuthController.js
├── ApiAuthController.js
config
├── adonis-auth-builder.js
resources
└── views
└── auth
└── emails
├── password.edge
├── welcome-mail.edge
start
├── authEvents.js
├── authRoutes.js
├── apiAuthRoutes.js
Adonis Auth Scaffold is a CLI utility that gives you a functional authentication system in Adonis.js within seconds.
Install adonis-auth-builder by running the below command.
NPM
npm install adonis-auth-builder --save-dev
npm install @adonisjs/mail @adonisjs/validator
Yarn
yarn add adonis-auth-builder --save-dev
yarn add @adonisjs/mail @adonisjs/validator
The adonis-auth-builder provider must be registered as an aceProvider.
We are running CLI commands after all!
const aceProviders = [
"adonis-auth-builder/providers/AdonisAuthBuilderProvider",
];
Also add providers for the newly installed dependencies.
const providers = [
"@adonisjs/validator/providers/ValidatorProvider",
"@adonisjs/mail/providers/MailProvider",
];

Please run the below command to scaffold authentication.
adonis make:auth
A prompt to choose between generating code for a RESTful Api or a HTTP client allows you customize the generated files for your specific use case.
Alternative versions of this command involves passing either the --api-only or --http-only flags.
To generate auth files for a REST Api, you may run:
adonis make:auth --api-only
Please add the following line at the beginning of start/events.js.
require("./authEvents");
Run the following command to run startup migrations.
Please remember to add the status column to your User migration.
adonis migration:run
Emmanuel Ogbiyoyo nuel@nueljoe.com
Contributions are welcome! Check out the issues or the PRs, and make your own if you want something that you don't see there.
FAQs
Painless authentication generator for your Adonis.js app available to you in one sexy command.
We found that adonis-auth-builder 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.