@zero-server/auth
v1.0.2
Published
JWT, sessions, OAuth, authorize, MFA stack.
Readme
@zero-server/auth
JWT, sessions, OAuth, authorize, MFA stack.
Full auth layer with no external libraries: JWT (sign/verify/decode/JWKS/refresh pairs), session middleware with pluggable stores, OAuth 2.0 with PKCE and pre-configured providers, role/permission policies, and the MFA stack (TOTP/WebAuthn/trusted-device/enrollment).
Install
npm install @zero-server/authOr install the full SDK to get everything at once:
npm install @zero-server/sdkUsage
const { createRefreshToken } = require('@zero-server/auth')Public surface
This package provides 25 public exports as a standalone runtime bundle. See the scope page for the full list.
Documentation
License
MIT © Anthony Wiedman
