6 lines
129 B
TypeScript
6 lines
129 B
TypeScript
import crypto from "node:crypto";
|
|
|
|
export function generateSecret(): string {
|
|
return crypto.randomBytes(32).toString("hex");
|
|
}
|