feat: download token utility (HMAC-SHA256, 1h expiry) #202
No reviewers
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot!202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/download-token-utility"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
generateDownloadToken(documentId)andvalidateDownloadToken(token, documentId)utility functionsAPI_SECRET, 1-hour expiry encoded in token payloadRefs
Closes #96, #197
Test plan
bun test packages/api/tests/unit/download-token.test.ts— 8/8 pass🤖 Generated with Claude Code