(length: number)
| 287 | |
| 288 | // Function to generate secure random 32-character string |
| 289 | function generateSecureRandomString(length: number): string { |
| 290 | return crypto |
| 291 | .randomBytes(Math.ceil(length / 2)) |
| 292 | .toString("hex") |
| 293 | .slice(0, length); |
| 294 | } |
| 295 | |
| 296 | // Function to update .dev.vars with secure random string |
| 297 | async function updateDevVarsWithSecret() { |
no outgoing calls
no test coverage detected