import crypto from "crypto"; const value = crypto.randomBytes(48).toString("base64url"); console.log(value);