code: func NewValidator(config Configuration, extractor RequestTokenExtractor) *JWTValidator {
  	if extractor == nil {
  		extractor = RequestTokenExtractorFunc(FromHeader)
  	}
  	return &JWTValidator{config, extractor}
  }
docs: // NewValidator creates a new
  // validator with the provided configuration.