{"repo":"aqib-io/tokensmith","free":true,"listed":false,"github":"https://github.com/aqib-io/tokensmith","clone":"git clone https://github.com/aqib-io/tokensmith.git","description":"Framework-agnostic JWT token management — storage, auto-refresh, cross-tab sync, and reactive auth state. Zero dependencies.","language":"TypeScript","stars":20,"topics":["access-token","authentication","broadcast-channel","cookie-storage","cross-tab-sync","jwt","react","refresh-token","session-management","ssr"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"You handle authentication. We handle the tokens after. Every app using JWTs ends up writing the same client-side logic: store tokens securely, refresh them before expiry, deduplicate concurrent refresh calls, keep browser tabs in sync, update the UI reactively. TokenSmith handles all of it — framework-agnostic, zero dependencies. --- Table of Contents - Why TokenSmith - Install - What TokenSmith replaces - Quick Start - React - Vue - Core API - React API - Vue API - Configuration - Storage Backends - Cross-Tab Sync - Auto-Refresh - SSR Support - TypeScript - Errors - Security - Compatibility - Bundle Size - Examples - Changelog - Contributing - License Why TokenSmith - Zero boilerplate — one createTokenManager() call replaces hundreds of lines of manual token handling written fresh for every project - Auto-refresh that just works — tokens refresh before expiry; concurrent callers share one request, no matter how many - Cross-tab sync — logout in one tab logs out all tabs instantly via BroadcastChannel , with automatic localStorage fallback - React & Vue-ready — React useAuth() via useSyncExternalStore ; Vue useAuth() via ref() + onScopeDispose ; both concurrent-safe with zero extra renders - Zero dependencies — no supply chain risk; tree-shakeable ESM + CJS; cookie storage with SameSite=Strict; Secure by default; 5 KB gzipped Install The React and Vue adapters ship in the same package — no separate install needed. What TokenSmith replaces Without TokenSmith, every project shi","default_branch":null,"files":null,"tree":[],"storefront":"/r/aqib-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aqib-io/tokensmith/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}