Skip to content

Commit

Permalink
Change raw string to utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
mittsh committed Jul 19, 2017
1 parent dda6e2a commit 7d2f0e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JsonWebTokenDynamicValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class JsonWebTokenDynamicValue {

const secret = this.signatureSecretIsBase64
? {b64: jsrsasign.b64utob64(this.signatureSecret)}
: {rstr: this.signatureSecret};
: {utf8: this.signatureSecret}

console.log(`Sign JWT: Header: ${JSON.stringify(header)} Payload: ${JSON.stringify(payload)}`)
console.log(`Sign JWT: Header: ${JSON.stringify(header)} Payload: ${JSON.stringify(payload)} Secret: ${JSON.stringify(secret)}`)
if (SUPPORTED_ALGS.indexOf(header.alg) < 0) {
console.error(`Unsupported algorithm '${header.alg}' (supports ${SUPPORTED_ALGS.join(', ')})`)
}
Expand Down

0 comments on commit 7d2f0e9

Please sign in to comment.