mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-18 19:12:54 +00:00
- Add JWTService struct with db/secretKey fields and NewJWTService constructor - Add Claims struct with UserID/Username/Role fields and jwt.RegisteredClaims embedding - Add GenerateToken method with 15-minute access token, 7-day refresh token, session storage, and inactive session cleanup - Add ValidateToken method with JWT parsing, HMAC signature verification, and active session validation - Add validateTokenWithoutSessionCheck for token parsing