Local authentication plugin for Seneca.js, providing local strategy support via PassportJS. Current stable version 0.1.2. This plugin is designed to be used with seneca-auth and Seneca toolkit. It handles username/password authentication, session management, and user registration. Tested on Seneca 0.8 and 0.9, Node 4 and 5. Key differentiator: integrates seamlessly with seneca-auth's plugin architecture and message patterns for authentication.
npm install seneca-local-authVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to set up and use local authentication with seneca-auth and seneca-local-auth, including user registration and login.
Consider migrating to seneca-auth with a different strategy or updating the plugin code for newer Seneca.
Evaluate alternatives or consider forking the project.
Always register 'auth' plugin before 'local-auth'.
Run 'npm install seneca-auth seneca' in your project.
Ensure the 'auth' plugin is used before 'local-auth': seneca.use('auth').use('local-auth')