Skip to content

Commit

Permalink
Fix code snippet (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
niwsa authored Dec 11, 2023
1 parent 3a88874 commit 56cf712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/directory-sync/webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ const body = {...}

const [t, s] = signatureHeader.split(',');

const signature = t.split('=')[1];
const timestamp = s.split('=')[1];
const timestamp = t.split('=')[1];
const signature = s.split('=')[1];

const signedPayload = `${timestamp}.${JSON.stringify(body)}`;

Expand Down

0 comments on commit 56cf712

Please sign in to comment.