refactor: add default fallback for session store secret (#8553)

**Description:**
- Add default fallback for session store secret.
- Updated SESSION_STORE_SECRET validation to be optional and of type
string.
This commit is contained in:
Antoine Moreaux 2024-11-18 14:29:19 +01:00 committed by GitHub
parent 6a977ad529
commit ba847292b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -447,8 +447,9 @@ export class EnvironmentVariables {
@CastToPositiveNumber()
CACHE_STORAGE_TTL: number = 3600 * 24 * 7;
@ValidateIf((env) => env.ENTERPRISE_KEY)
SESSION_STORE_SECRET: string;
@IsString()
@IsOptional()
SESSION_STORE_SECRET = 'replace_me_with_a_random_string_session';
@CastToBoolean()
CALENDAR_PROVIDER_GOOGLE_ENABLED = false;