tinyland-auth

v0.3.0 NPM Other Auto

https://gitlab.com/tinyland/projects/tinyland.dev →

Install

npm install tinyland-auth

Languages

TypeScript 98.6% Starlark 1.1% Nix 0.3% Shell 0.0%

README

@tummycrypt/tinyland-auth

Production-grade authentication system with TOTP, RBAC, and pluggable storage.

Install

pnpm add @tummycrypt/tinyland-auth

Exports

  • . — core auth: session management, password hashing, permissions, RBAC
  • ./sveltekit — SvelteKit integration: hooks, guards, CSRF, session cookies
  • ./storage — storage adapter interface + memory/file implementations
  • ./types — TypeScript type definitions
  • ./totp — TOTP generation and verification
  • ./activity — activity tracking
  • ./audit — audit logging
  • ./cred-gen — credential generation and display
  • ./validation — input validation utilities

Storage Adapters

Implement IStorageAdapter for your backend:

  • Built-in: MemoryStorageAdapter, FileStorageAdapter
  • Separate packages: @tummycrypt/tinyland-auth-pg (PostgreSQL), @tummycrypt/tinyland-auth-redis (Upstash Redis)

Releases

v0.3.0 4/28/2026

## What's new Adds `createFixedTenantStorageAdapter` factory + `resolveAuthTenantId` helper to `@tummycrypt/tinyland-auth/storage`. Bridges tenant-scoped (Pattern B) storage backends to the standard