@panditji/auth-module
v1.0.0
Published
A plug-and-play authentication system for Express.js with:
Readme
Express Auth Kit
A plug-and-play authentication system for Express.js with:
- ✅ Email & Password login/signup
- ✅ JWT Authentication (HTTP-only cookies)
- ✅ Google OAuth
- ✅ GitHub OAuth
- ✅ Protected routes middleware
- ✅ MongoDB (Mongoose) support
- ✅ Ready-to-use routes
Installation
npm install express-auth-kit
# Register
POST /api/v1/register
Content-Type: application/json
{
"name": "Pandit",
"email": "[email protected]",
"password": "123456"
}
# Login
POST /api/v1/login
Content-Type: application/json
{
"email": "[email protected]",
"password": "123456"
}
Google OAuth Setup
http://localhost:8000/api/auth/google/callback
GitHub OAuth Setup
http://localhost:8000/api/auth/github/callback
Tech Stack
Node.js
Express.js
MongoDB + Mongoose
Passport.js
JWT
bcrypt
