Store hotlink access token hash on upload for short URL lookup.

This commit is contained in:
2026-11-01 23:17:29 +01:00
parent a82fc6d6c0
commit c97303850a
7 changed files with 60 additions and 8 deletions
@@ -0,0 +1,4 @@
import { createHash } from 'node:crypto';
export const hashHotlinkAccessToken = (accessToken: string): string =>
createHash('sha256').update(accessToken, 'utf8').digest('hex');