(bytes: number)
| 68 | } |
| 69 | |
| 70 | export function generateSecret(bytes: number): string { |
| 71 | return randomBytes(bytes).toString('base64'); |
| 72 | } |
| 73 | |
| 74 | export function toEnvKey(connectionName: string, suffix: string): string { |
| 75 | return `${connectionName.toUpperCase().replace(/-/g, '_')}_${suffix}`; |