Server-side authentication package for FounderLab apps, version 11.7.2. Provides Express-based login, registration, logout, password reset, and OAuth (Facebook, LinkedIn) strategies using Passport.js. It is part of a proprietary suite with no public release history or cadence. Differentiators include automatic route generation, support for custom User models, and integrated session management via express-session. The library is not actively maintained on GitHub. Alternatives include passport.js directly or NextAuth.js for more modern setups.
npm install fl-auth-serverVerified import paths — ran on the pinned version, not inferred.
Shows minimal setup for fl-auth-server with Express, session middleware, Facebook OAuth, and password reset email placeholder.
Use import { configure } from 'fl-auth-server' instead of require('fl-auth-server').Use 'linkedin' key instead of second 'facebook' when configuring LinkedIn.
Consider migrating to passport.js directly with latest strategies.
Ensure app.use(session(...)) is called before configure({app, ...}).Provide a sendResetEmail callback in the options object.
Change to import { configure } from 'fl-auth-server' and ensure your project is configured for ESM.Run npm install express-session and add app.use(session({...})) before configure().Set a view engine like EJS or disable views by overriding sendResetEmail to avoid template rendering.
Ensure process.env.URL matches the exact callback URL registered in Facebook App Settings.