From d28f7a6124fadccdfe8d0a4a00343831435d09b0 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Mon, 26 Aug 2024 18:32:39 -0700 Subject: [PATCH] update the code snippet title for webhook request validation (#740) --- docs/running-tasks/webhooks-faq.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/running-tasks/webhooks-faq.mdx b/docs/running-tasks/webhooks-faq.mdx index 454f7f4b..828b4440 100644 --- a/docs/running-tasks/webhooks-faq.mdx +++ b/docs/running-tasks/webhooks-faq.mdx @@ -11,7 +11,7 @@ We use Webhooks for executing tasks as the expected runtime of these jobs can ex ## How do we handle webhook authentication? (ie how can we handle callbacks?) -```python validate_skyvern_request.py +```python Python import hmac from fastapi import Request @@ -23,7 +23,7 @@ def validate_skyvern_request_headers(request: Request) -> bool: return header_skyvern_signature == client_generated_signature ``` -```javascript validateSkyvernRequest.js +```javascript Javascript const crypto = require('crypto'); function validateSkyvernRequestHeaders(req) {