A minimal authentication library for Node.js (v2.0.8) designed for simplicity and rapid setup. It provides basic JWT-based authentication with user registration and login flows. Currently a work in progress with limited documentation and no recent updates; suitable for experimental or internal projects only. Lacks TypeScript definitions and has no notable adoption.
npm install powr-authNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of the PowrAuth class for user registration and login, generating a JWT token.
Use a more established auth library like jsonwebtoken or passport.
Use JSDoc or define custom types manually.
Always pass a secret and validate input before calling methods.
Ensure you pass an object with a 'secret' property to the PowrAuth constructor.
Provide an object with both 'email' and 'password' strings.
No dependency data recorded yet.