Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Patch .secretValue access in INVITE_ONLY_SIGNUP

Tuan Dangbb6d0fd7c67e
diff --git a/backend/src/config/index.ts b/backend/src/config/index.ts
index 4c6bed800f..5dce2bc09a 100644
--- a/backend/src/config/index.ts
+++ b/backend/src/config/index.ts
@@ -5,7 +5,7 @@ const client = new InfisicalClient({
});
export const getPort = async () => (await client.getSecret('PORT')).secretValue || 4000;
-export const getInviteOnlySignup = async () => (await client.getSecret('INVITE_ONLY_SIGNUP')).secretValue == undefined ? false : await client.getSecret('INVITE_ONLY_SIGNUP');
+export const getInviteOnlySignup = async () => (await client.getSecret('INVITE_ONLY_SIGNUP')).secretValue == undefined ? false : (await client.getSecret('INVITE_ONLY_SIGNUP')).secretValue;
export const getEncryptionKey = async () => (await client.getSecret('ENCRYPTION_KEY')).secretValue;
export const getSaltRounds = async () => parseInt((await client.getSecret('SALT_ROUNDS')).secretValue) || 10;
export const getJwtAuthLifetime = async () => (await client.getSecret('JWT_AUTH_LIFETIME')).secretValue || '10d';