Base64-encoded key bytes may only be specified for HMAC signatures. If using RSA or Elliptic Curve, use the signWith(SignatureAlgorithm, Key) method instead.
解决方案:
SignatureAlgorithm.ES256
改为
SignatureAlgorithm.HS256
Base64-encoded key bytes may only be specified for HMAC signatures. If using RSA or Elliptic Curve, use the signWith(SignatureAlgorithm, Key) method instead.
解决方案:
SignatureAlgorithm.ES256
改为
SignatureAlgorithm.HS256