samrendra.me
BackendInfraactive

Customer Access Portal

Passwordless customer access for purchases, files, invoices, and licenses.

A TypeScript helper for passwordless customer access to purchases, files, reports, invoices, licenses, or private portals. Supports OTP challenges, magic links, scoped access tokens, and resource listing.

summary

A TypeScript helper for passwordless customer access to purchases, files, reports, invoices, licenses, or private portals. Supports OTP challenges, magic links, scoped access tokens, and resource listing. Uses adapters for database / repository and email provider integration. Includes rate-limit concepts, OTP expiry, session expiry, token hashing, and cleanup jobs. Designed to pair with protected-download-gateway for guest purchase recovery and protected files. Vitest coverage included.

highlights
  • Built a passwordless customer access library with OTP verification, magic links, scoped sessions, token hashing, rate limits, and cleanup flows.

  • Designed adapter-based customer portal primitives for guest purchases, private file libraries, invoices, reports, and license access.

  • Integrated the access model with protected download flows so verified customers can recover and access scoped resources safely.

tech
  • TypeScript
  • Node.js
  • Vitest
keywords

auth · OTP · magic links · scoped sessions · token hashing · guest access · customer portals · rate limits

next project

up next

Scan / Photocopy Simulator

Browser canvas engine for scanned-document and photocopy effects.

read it