Express Auth Engine is an authentication middleware library for Express.js applications, supporting JSON Web Token (JWT) based authentication with role-based access control. Currently at version 1.0.3, it provides a simple API for user authentication, token generation, and route protection. Differentiators include built-in support for multiple authentication strategies, token refresh, and easy integration with Express route handlers. The library is designed for Node.js and uses a middleware pattern to secure endpoints. It is released under the ISC license and requires express as a peer dependency.
npm install express-auth-engineNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic Express app with login and protected route using AuthEngine.
Use new AuthEngine() constructor instead of old createAuthEngine() function
Use 'local' strategy instead
Provide a secret of 32+ characters
Use refreshToken method from AuthEngine instance
npm install express-auth-engine --save
Use import { AuthEngine } from 'express-auth-engine'Add requireAuth middleware to the route