feature/IO-2282-VSSTA-Integration: - doc blocks / cleanup
This commit is contained in:
@@ -2,6 +2,11 @@ const crypto = require("crypto");
|
||||
|
||||
const imgproxyKey = process.env.IMGPROXY_KEY;
|
||||
|
||||
/**
|
||||
* @description Creates a HMAC SHA-256 hash of the given data.
|
||||
* @param data
|
||||
* @returns {string}
|
||||
*/
|
||||
const createHmacSha256 = (data) => crypto.createHmac("sha256", imgproxyKey).update(data).digest("base64url");
|
||||
|
||||
module.exports = createHmacSha256;
|
||||
|
||||
Reference in New Issue
Block a user