Skip to content

Commit

Permalink
fix: return correct version from v1 verify with buffer and complete o…
Browse files Browse the repository at this point in the history
…ptions
  • Loading branch information
panva committed Jul 17, 2021
1 parent a34d9df commit 00f0dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v1/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = async function v1Verify (token, key, { complete = false, buffer

if (buffer) {
if (complete) {
return { payload: m, footer, version: 'v2', purpose: 'public' }
return { payload: m, footer, version: 'v1', purpose: 'public' }
}

return m
Expand Down

0 comments on commit 00f0dd6

Please sign in to comment.