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) {