auth0 / node-jws

JSON Web Signatures
http://self-issued.info/docs/draft-ietf-jose-json-web-signature.html
MIT License
709 stars 108 forks source link

jws.decode support for encoding option #86

Open joelabrahamsson opened 5 years ago

joelabrahamsson commented 5 years ago

jws.sign supports specifying encoding but jws.decode doesn't (although the payloadFromJWS function has an unused encoding parameter). This pull request aims to fix this.