
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
mbkAuth is a reusable authentication system for Node.js applications, designed to simplify session management, user authentication, and role-based access control. It integrates seamlessly with PostgreSQL and supports features like Two-Factor Authentication (2FA), session restoration, and reCAPTCHA verification.
express-session and connect-pg-simple.Install the package via npm:
npm install mbkauth
import express from "express";
import mbkAuthRouter from "mbkauth";
const app = express();
app.use(mbkAuthRouter);
app.listen(3000, () => {
console.log("Server is running on port 3000");
});
Example .env file:
RECAPTCHA_SECRET_KEY=your-recaptcha-secret-key
SESSION_SECRET_KEY=your-session-secret-key
LOGIN_DB=postgres://username:password@host:port/database
DOMAIN=yourdomain.com
IS_DEPLOYED=true
MBKAUTH_TWO_FA_ENABLE=false
COOKIE_EXPIRE_TIME=2
POST /api/mbkauth/login
Request Body:
username: User's username.password: User's password.token: (Optional) 2FA token.recaptcha: reCAPTCHA response.Response:
200: Login successful.400: Missing or invalid input.401: Unauthorized (e.g., invalid credentials or 2FA token).500: Internal server error.POST /api/mbkauth/logout
200: Login successful.400: User not logged in.500: Internal server error.POST /api/mbkauth/terminateAllSessions
Main_SECRET_TOKEN in the Authorization header.200: All sessions terminated successfully.500: Internal server error.This project utilizes three primary tables:
For detailed information about table columns, schema, and queries to create these tables, refer to the Database Guide (docs/db.md).
This project is licensed under the Mozilla Public License 2.0. See the LICENSE file for details.
For questions or contributions, please contact Muhammad Bin Khalid at mbktechstudio.com/Support, support@mbktechstudio.com or chmuhammadbinkhalid28.com.
Developed by Muhammad Bin Khalid
FAQs
MBKTechStudio's reusable authentication system for Node.js applications.
We found that mbkauth demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.