From 56cf71227aadbb7eba7d1faeb3cef85c79bb9eae Mon Sep 17 00:00:00 2001 From: Aswin V Date: Mon, 11 Dec 2023 18:57:23 +0800 Subject: [PATCH] Fix code snippet (#318) --- docs/directory-sync/webhooks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/directory-sync/webhooks.md b/docs/directory-sync/webhooks.md index b3119f84..ef9453f2 100644 --- a/docs/directory-sync/webhooks.md +++ b/docs/directory-sync/webhooks.md @@ -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)}`;