Propro-auth-middleware is a Node.js authentication middleware for Express supporting server-side and client-side authentication with lazy loading, environment validation, and customizable options. Version 1.3.6 is the latest stable release. It is designed for applications needing robust authentication strategies. Differentiating features include dual-mode support and configuration flexibility, though it has a small user base and limited adoption compared to alternatives like Passport.js.
npm install propro-auth-middlewareNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Express app with server-side authentication using custom validation and redirect on failure.
Ensure all required env vars are defined before initializing middleware.
Use require() instead of import statements.
Use an object parameter: proproAuthMiddleware({ useServerAuth: true, useClientAuth: false }).Explicitly set a strong secret via options or environment variable.
Run 'npm install propro-auth-middleware' and ensure package.json includes it.
Use require('propro-auth-middleware') instead of import.Set SECRET in process.env or pass explicitly in options.
No dependency data recorded yet.