Skip to content

Commit

Permalink
fix: fix clow stew issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 committed Jun 10, 2024
1 parent c842ac1 commit 8a34ab6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/restapi/src/lib/chat/helpers/pgp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ const PGPHelper:IPGPHelper = {
})
const publicKey: openpgp.PublicKey = await openpgp.readKey({ armoredKey: publicKeyArmored })
const verificationResult = await openpgp.verify({
// setting date to 1 day in the future to avoid issues with clock skew
date: new Date(Date.now() + 1000 * 60 * 60 * 24),
message,
signature,
verificationKeys: publicKey
Expand Down

0 comments on commit 8a34ab6

Please sign in to comment.