Skip to content

Commit

Permalink
fix: fix clow stew issue (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 authored Jun 10, 2024
1 parent c842ac1 commit 72beb73
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 72beb73

Please sign in to comment.