Secure webhook endpoint for handling Authsignal OTP events and user authentication.
POST /api/authsignal-webhook
Create a .env.local
file with your Authsignal credentials:
AUTHSIGNAL_SECRET_KEY=your_secret_key_here AUTHSIGNAL_TENANT_ID=your_tenant_id_here
Deploy this Next.js app to your hosting provider (Vercel, Netlify, etc.)
Recommended: Deploy to Vercel for automatic HTTPS and easy setup.
Set your webhook URL in the Authsignal dashboard:
https://your-domain.com/api/authsignal-webhook
All webhook requests are verified using HMAC-SHA256
All Authsignal events are logged for debugging
Proper CORS headers for cross-origin requests
Full TypeScript support for type safety
Postack Delivery Webhook Server • Built with Next.js