Comparing version 1.0.8 to 1.0.9
@@ -131,8 +131,6 @@ const { parentPort, Worker, isMainThread } = require('worker_threads') | ||
const t2 = methods.hmac('sha384', preAuth, ak) | ||
if (!timingSafeEqual(t, t2)) return false | ||
const payload = methods.decrypt('aes-256-ctr', c, ek, n.slice(16)) | ||
if (!payload) return false | ||
if (!timingSafeEqual(t, t2) || !payload) { | ||
return false | ||
} | ||
return payload | ||
@@ -139,0 +137,0 @@ }, |
{ | ||
"name": "paseto", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "PASETO for Node.js with minimal dependencies", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
54582
37
1311