Store hotlink access token hash on upload for short URL lookup.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import { createHash } from 'node:crypto';
|
||||
|
||||
export const hashHotlinkAccessToken = (accessToken: string): string =>
|
||||
createHash('sha256').update(accessToken, 'utf8').digest('hex');
|
||||
Reference in New Issue
Block a user