diff --git a/internal/jwt/service.go b/internal/jwt/service.go index 9c74f9e..b938248 100644 --- a/internal/jwt/service.go +++ b/internal/jwt/service.go @@ -35,6 +35,7 @@ func (s *Service) Generate(ttl time.Duration, extraClaims jwt.MapClaims) (string } // Validate verifies the JWT token and extracts the claims and JTI(JWT IDentifier). +// Returns claims, jti, and error if any. func (s *Service) Validate(token string) (jwt.MapClaims, string, error) { claims, err := s.signer.Verify(token) if err != nil {