1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

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) { module.exports.decode = function(payload, secret) {
if (!jws.verify(payload, secret)) { if (!jws.verify(payload, 'HS256', secret)) {
return null return null
} }