@jsango/auth
v1.3.0
Published
Authentication and authorization foundation for jsango
Readme
@jsango/auth
Authentication and authorization subsystem with Session, JWT, API Key strategies, Scrypt hashing, and object policies.
Part of the jsango backend framework for TypeScript.
Installation
pnpm add @jsango/authUsage
import { AuthService, ScryptHasher, PolicyRegistry, definePolicy } from '@jsango/auth';
const hasher = new ScryptHasher();
const hash = await hasher.hash('secure-password');
const valid = await hasher.verify('secure-password', hash);Documentation
For full architecture documentation and guides, visit the jsango documentation.
License
MIT © jsango contributors
