pyjwkest
pyjwkest copied to clipboard
jwe: use runtime checks instead of assertions
Optimization strips all assertions, so assert shouldn't be used for control flow. In this case, jwe.JWEnc.is_jwe returned True for all tokens after optimization.