{"repo":"raloonsoc/velvet-auth","free":true,"listed":false,"github":"https://github.com/raloonsoc/velvet-auth","clone":"git clone https://github.com/raloonsoc/velvet-auth.git","description":"Production-ready auth plugin for Elysia + Bun. JWT rotation, Argon2id, RESP-compatible sessions, adapter pattern. Zero bloat.","language":"TypeScript","stars":11,"topics":["argon2","bun","elysia","jwt","redis","typescript","authentication","oauth"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Production-ready authentication plugin for Elysia + Bun . JWT rotation · Argon2id · RESP-compatible sessions · Zero bloat. --- Why velvet-auth? Every Bun/Elysia project needs the same auth stack: hash passwords securely, issue JWTs, rotate them, invalidate on logout. Setting it up from scratch every time is tedious and error-prone. velvet-auth packages that stack into a single plugin. You bring your own database and email provider — velvet-auth handles the rest. --- Features - JWT rotation — Access + refresh token rotation via httpOnly cookies, path-scoped for security - Native Argon2id — Password hashing via Bun.password , zero extra native dependencies - RESP-compatible sessions — Refresh tokens + JTI blacklist on logout using atomic GETDEL . Works with Redis, Valkey, KeyDB, Dragonfly, and Garnet - Adapter pattern — Plug in any database or email provider with a simple interface - Auth guard — createAuthGuard() verifies the token and injects ctx.user on protected routes - Type-safe config — Full Zod validation with sane, secure defaults Bun-only. Relies on Bun.password (native Argon2id) and Bun.RedisClient . No extra native dependencies required. --- Requirements - Bun = 1.0 - Elysia = 1.0 - Redis = 6 or any RESP-compatible server (Valkey, KeyDB, Dragonfly, Garnet) --- Installation --- Quick start That's it. The following routes are now available: Method Route Description -------- ------- ------------- POST /auth/register Create account POST /auth/login Login, set httpOnly c","default_branch":null,"files":null,"tree":[],"storefront":"/r/raloonsoc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/raloonsoc/velvet-auth/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."}