mirror of https://github.com/nucypher/nucypher.git
Apply suggestions from code review
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>pull/3570/head
parent
14d46d3f39
commit
5d791589b4
|
@ -1 +1 @@
|
|||
Support for conditions based on JWT tokens.
|
||||
Support for conditions based on verification of JWT tokens.
|
||||
|
|
|
@ -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}'"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue