A middleware library for Express.js that provides a unified authentication box supporting multiple strategies (JWT, OAuth, session, etc.). Current stable version 0.0.62 (as of 2025) with minimal release cadence (no recent updates). Key differentiator: single-box configuration for auth, but lacks documentation and appears unmaintained. Alternatives like passport or express-jwt are more robust.
npm install auth-expressNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes auth middleware with JWT secret and protects a route using auth.required guard.
Migrate to a maintained authentication library.
Use ES module syntax: import auth from 'auth-express'
Use app.use(auth(options)) instead of app.use(auth)
Run npm install auth-express
Provide options: auth({ secret: 'mysecret' })Switch to import statement: import auth from 'auth-express'
No dependency data recorded yet.