Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
fix(test): assign proper token names for csrf and ws
johavenbfe43e5f099c
diff --git a/backend/src/configuration/config.environment.ts b/backend/src/configuration/config.environment.tsindex 2c18d632..1c4fadc8 100755--- a/backend/src/configuration/config.environment.ts+++ b/backend/src/configuration/config.environment.ts@@ -5,6 +5,7 @@*/import { join } from 'node:path'+import { CSRF_KEY, WS_KEY } from '../authentication/constants/auth'import { transformAndValidate } from '../common/functions'import { configLoader } from './config.loader'import { Configuration } from './config.validation'@@ -16,7 +17,8 @@ function loadConfiguration(): Configuration {const config: Configuration = configLoader()// AUTHENTICATION// CSRF & WS settings- config.auth.token.csrf = config.auth.token.ws = { ...config.auth.token.refresh }+ config.auth.token.csrf = { ...config.auth.token.refresh, name: CSRF_KEY }+ config.auth.token.ws = { ...config.auth.token.refresh, name: WS_KEY }// APPLICATIONS CONFIGURATION// SPACES & FILESif (!config.applications.files.dataPath) {