From 856752db212510a70f33b012b9f9766a195cae83 Mon Sep 17 00:00:00 2001 From: Balu Babu Date: Wed, 8 Feb 2023 14:41:05 +0530 Subject: [PATCH] chore: added env_file property to SH-backend docker-compose file --- packages/hoppscotch-backend/docker-compose.yml | 2 ++ packages/hoppscotch-backend/src/auth/helper.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/hoppscotch-backend/docker-compose.yml b/packages/hoppscotch-backend/docker-compose.yml index a27bd2c7d..f9f606083 100644 --- a/packages/hoppscotch-backend/docker-compose.yml +++ b/packages/hoppscotch-backend/docker-compose.yml @@ -2,6 +2,8 @@ version: '3.0' services: local: build: . + env_file: + - .env command: [ "pnpm", "run", "start:dev" ] environment: - PRODUCTION=false diff --git a/packages/hoppscotch-backend/src/auth/helper.ts b/packages/hoppscotch-backend/src/auth/helper.ts index 50231a5a2..979dc46dd 100644 --- a/packages/hoppscotch-backend/src/auth/helper.ts +++ b/packages/hoppscotch-backend/src/auth/helper.ts @@ -54,7 +54,7 @@ export const authCookieHandler = ( }; /** - * Sets and returns the cookies in the response object on successful authentication + * Decode the cookie header from incoming websocket connects and returns a auth token pair * @param rawCookies cookies from the websocket connection * @returns AuthTokens for JWT strategy to use */