Issue #20380: Added signing to encode for the jwt