Apply suggestions from code review

Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
pull/3570/head
David Núñez 2025-01-06 16:59:35 +01:00
parent 14d46d3f39
commit 5d791589b4
No known key found for this signature in database
GPG Key ID: 53A9D83EF4C6332A
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
Support for conditions based on JWT tokens.
Support for conditions based on verification of JWT tokens.

View File

@ -38,7 +38,7 @@ class JWTVerificationCall(ExecutionCall):
@validates("jwt_token")
def validate_jwt_token(self, value):
if value and not is_context_variable(value):
if not is_context_variable(value):
raise ValidationError(
f"Invalid value for JWT token; expected a context variable, but got '{value}'"
)