From 17d66fdd593c776cf6f63b00d08b5e5da3ac12ca Mon Sep 17 00:00:00 2001 From: Harshith Mullapudi Date: Wed, 27 Nov 2024 14:43:46 +0530 Subject: [PATCH] Fix: connecting to ws is failing --- apps/server/src/modules/auth/supertokens/supertokens.config.ts | 2 +- apps/server/src/modules/sync/sync.gateway.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/server/src/modules/auth/supertokens/supertokens.config.ts b/apps/server/src/modules/auth/supertokens/supertokens.config.ts index e29dea3d..f6a3221d 100644 --- a/apps/server/src/modules/auth/supertokens/supertokens.config.ts +++ b/apps/server/src/modules/auth/supertokens/supertokens.config.ts @@ -31,7 +31,7 @@ export const recipeList = ( const cookieSettings = isProd ? { cookieDomain: '.tegon.ai', - olderCookieDomain: 'app.tegon.ai', + olderCookieDomain: '', cookieSecure: true, } : {}; diff --git a/apps/server/src/modules/sync/sync.gateway.ts b/apps/server/src/modules/sync/sync.gateway.ts index c71e4f31..48e91ff4 100644 --- a/apps/server/src/modules/sync/sync.gateway.ts +++ b/apps/server/src/modules/sync/sync.gateway.ts @@ -37,7 +37,8 @@ export class SyncGateway implements OnGatewayInit, OnGatewayConnection { }); const { query, headers } = client.handshake; - const isValid = await isValidAuthentication(headers); + // TODO: (imp) fix this + const isValid = isValidAuthentication(headers); if (!isValid) { this.logger.info({