Comparing version 0.2.0 to 0.2.2
@@ -91,4 +91,3 @@ 'use strict' | ||
var joseSignature = tokenParts[2], | ||
derSignatureBuffer = sigFormatter.joseToDer(joseSignature, 'ES256'), | ||
derSignatureArray = derSignatureBuffer.toJSON().data | ||
derSignatureBuffer = sigFormatter.joseToDer(joseSignature, 'ES256') | ||
@@ -99,3 +98,3 @@ // prepare the public key | ||
// verify the token | ||
var verified = publicKeyObject.verify(signingInputHash, derSignatureArray) | ||
var verified = publicKeyObject.verify(signingInputHash, derSignatureBuffer) | ||
@@ -102,0 +101,0 @@ return verified |
{ | ||
"name": "jwt-js", | ||
"version": "0.2.0", | ||
"version": "0.2.2", | ||
"description": "node.js library for encoding, decoding, and verifying JSON Web Tokens (JWTs)", | ||
@@ -43,3 +43,8 @@ "main": "index.js", | ||
"elliptic": "^5.1.0" | ||
} | ||
}, | ||
"files": [ | ||
"lib/", | ||
"*.js", | ||
"README.md" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7700
5
122
1
0