Update jws to 3.0.0.

This commit is contained in:
Simo Kinnunen
2015-07-01 17:29:26 +09:00
parent 4d0e8775cb
commit 7ad09d6713

View File

@@ -16,7 +16,7 @@ module.exports.encode = function(options) {
}
module.exports.decode = function(payload, secret) {
if (!jws.verify(payload, secret)) {
if (!jws.verify(payload, 'HS256', secret)) {
return null
}