Skip to content

Instantly share code, notes, and snippets.

View johnnyman727's full-sized avatar

Jon johnnyman727

View GitHub Profile
@johnnyman727
johnnyman727 / arcadia.py
Last active August 10, 2022 13:05 — forked from alejoar/arcadia.py
Python Webhook signature validation for Arc
import hashlib
import hmac
import time
import starlette
WEBHOOK_SIGNING_KEY = "<YOUR_WEBHOOK_SIGNING_KEY>"
SECONDS_TO_STALE = 300 # 5 minutes