We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58624b1 commit fe59033Copy full SHA for fe59033
1 file changed
setup.js
@@ -27,6 +27,10 @@ function generateRandomString(length = 32, includeSpecialChars = false) {
27
.join('');
28
}
29
30
+function generateEncryptionKey() {
31
+ return crypto.randomBytes(32).toString('hex');
32
+}
33
+
34
function generateJwt(secret, role, expiresIn) {
35
const payload = {
36
role: role,
@@ -112,7 +116,7 @@ function generateEnvFiles(hostname) {
112
116
LOGFLARE_LOGGER_BACKEND_API_KEY: generateRandomString(64),
113
117
LOGFLARE_API_KEY: generateRandomString(64),
114
118
POOLER_TENANT_ID: generateRandomString(16),
115
- ENCRYPTION_KEY: generateRandomString(64),
119
+ ENCRYPTION_KEY: generateEncryptionKey(),
120
};
121
122
const supabaseEnv = `
0 commit comments