A robust Node.js authentication boilerplate designed for secure user authentication with added email verification. This boilerplate provides a solid foundation for building web applications that require user registration, login, and account management features.
-
User Authentication: Implement secure user authentication using Node.js and Sequelize, providing a reliable foundation for user management.
-
JWT Refresh Token: Enhance security by implementing JSON Web Tokens (JWT) for authentication, and use refresh tokens to manage secure session management. This adds an extra layer of protection against unauthorized access.
-
Email Verification: Enhance security and user confirmation by incorporating email verification during the registration process. Users receive a verification email with a unique link to activate their accounts.
-
Password Encryption: Utilize strong password encryption techniques to safeguard user credentials and ensure data integrity.
-
Sequelize ORM: Leverage the power of Sequelize as the Object-Relational Mapping (ORM) tool to interact seamlessly with your database, ensuring efficient data management.
-
Express.js Integration: Built on top of Express.js, a fast, unopinionated, minimalist web framework for Node.js, facilitating the development of scalable and maintainable applications.
-
Customizable and Extensible: Easily extend the functionality to meet your specific requirements or integrate additional features with the modular and well-organized codebase.
- Clone the repository.
- Install dependencies using
npm install
. - Copy env file
cp .env.example .env
. - Configure the database connection in the
.env
file. - Create database with sequelize ORM
npm run db:create
- Run migrations
npm run db:migrate
. - Run seeder
npm run db:seed
. - Start the application with
npm run start:dev
.
Refer to the documentation for detailed instructions on setting up and customizing the authentication system.
Contributions are welcome! Feel free to open issues, submit pull requests, or provide feedback to help improve this authentication boilerplate.
This project is licensed under the MIT License - see the LICENSE file for details.