ReferenceError: window is not defined
at Object. (/Users/gaelim/Project/violet-project/violet-backend/node_modules/jsencrypt/bin/jsencrypt.js:18:4)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at /Users/gaelim/Project/violet-project/violet-backend/src/guards/clientDecryptAuth.guard.ts:15:28
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ClientDecryptAuthGuard.decrypt (/Users/gaelim/Project/violet-project/violet-backend/src/guards/clientDecryptAuth.guard.ts:15:28)
ReferenceError: window is not defined at Object. (/Users/gaelim/Project/violet-project/violet-backend/node_modules/jsencrypt/bin/jsencrypt.js:18:4)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at /Users/gaelim/Project/violet-project/violet-backend/src/guards/clientDecryptAuth.guard.ts:15:28
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ClientDecryptAuthGuard.decrypt (/Users/gaelim/Project/violet-project/violet-backend/src/guards/clientDecryptAuth.guard.ts:15:28)
using jsencrypt with nest js guard.