learning_ai_common_plat/packages
saravanakumardb1 602fa50216 feat(auth): add @bytelyst/auth package
- createJwtUtils() factory with configurable issuer and expiry (jose)
- extractAuth() middleware for Fastify request auth extraction
- requireRole() guard with multi-role support
- hashPassword() / verifyPassword() via bcryptjs
- getCurrentUser() helper for Next.js API routes (generic TUser)
- AuthPayload, TokenPayload, JwtUtils types
- NO dependency on @bytelyst/config (reads JWT_SECRET from process.env directly)
- Peer deps: jose >=5.0.0, bcryptjs >=2.4.0
2026-02-12 11:19:58 -08:00
..
auth feat(auth): add @bytelyst/auth package 2026-02-12 11:19:58 -08:00
config feat(config): add @bytelyst/config package 2026-02-12 11:19:49 -08:00
cosmos feat(cosmos): add @bytelyst/cosmos package 2026-02-12 11:19:42 -08:00
errors feat(errors): add @bytelyst/errors package 2026-02-12 11:19:35 -08:00