Signature Verification
Signature Header
X-Athena-Signature: t=1703505600,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bdVerification Steps
1. Extract Components
const header = req.headers['x-athena-signature'];
const [timestampPart, signaturePart] = header.split(',');
const timestamp = parseInt(timestampPart.split('=')[1]);
const signature = signaturePart.split('=')[1];2. Check Timestamp
3. Compute Expected Signature
4. Compare Signatures
Complete Examples
JavaScript (Express)
Python (Flask)
Python (FastAPI)
Using the SDK
JavaScript
Python
Troubleshooting
Error
Cause
Solution
Secret Rotation
Last updated