Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
Fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed May 24, 2021
1 parent 7df7b29 commit cd0dead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ async function computeSignature(signedPayload: string, secret: string) {

const DEFAULT_TOLERANCE = 300; // 5 minutes

export function constructEvent(payload: string, header: string, secret: string, tolerance?: number) {
verifyHeader(
export async function constructEvent(payload: string, header: string, secret: string, tolerance?: number) {
await verifyHeader(
payload,
header,
secret,
Expand Down

0 comments on commit cd0dead

Please # to comment.