This commit is contained in:
2025-12-18 19:58:29 +02:00
parent e2b92f8ba1
commit c80f7932b4

View File

@@ -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 {