Replace manual Threadfin lookup instructions with a signed approve button in admin notification emails. Clicking it activates channels in Threadfin via WebSocket API and sends a confirmation email to the requester. - Add /api/approve-channels endpoint with HMAC-signed tokens - Add lib/threadfin.ts for WebSocket-based channel activation - Add lib/token.ts for signed token creation/verification - Add ws dependency for Threadfin WebSocket communication - Update docker-compose with TOKEN_SECRET and THREADFIN_* env vars Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| route.ts | ||