@omnitron-dev/titan-auth
v0.1.3
Published
JWT authentication module for Titan framework
Readme
@omnitron-dev/titan-auth
JWT authentication module for the Titan framework
Part of the Omni monorepo — Fullstack Type-Safe RPC Framework.
Installation
pnpm add @omnitron-dev/titan-authOverview
Provides JWT-based authentication for Titan applications. Handles token issuance (HS256, via jose), validation in HTTP middleware, and bridges auth context into Titan's async-local-storage RLS layer so every RPC call has access to the authenticated user.
Key Features
- JWT issuance and validation
AuthenticationManagerfor HTTP middlewareAuthenticationClientwith pluggable token storage- Auth context propagation via
AsyncLocalStorage - Method-level authorization via
@Public({ auth: { roles, permissions, policies } })
License
MIT
