From a5a8b57a51d3b6706bfc3f506ca610a03dc7e880 Mon Sep 17 00:00:00 2001 From: Prakash Date: Thu, 12 Oct 2023 19:14:46 +0530 Subject: [PATCH 1/2] add env to cookie name --- config/default.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/default.ts b/config/default.ts index 99f49be..8198e26 100644 --- a/config/default.ts +++ b/config/default.ts @@ -20,7 +20,7 @@ export default { }, userAccessToken: { - cookieName: `rcal-session`, + cookieName: `rcal-session-${NODE_ENV}`, cookieDomain: '', ttl: 30 * 24 * 60 * 60, // in seconds refreshTtl: 180 * 24 * 60 * 60, // in seconds From ad4496a8b758cf75e7a3231f619c6ebabab0ab35 Mon Sep 17 00:00:00 2001 From: Prakash Date: Fri, 13 Oct 2023 11:58:01 +0530 Subject: [PATCH 2/2] Update cookie name --- config/default.ts | 2 +- config/production.ts | 5 +++++ config/staging.ts | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 config/production.ts diff --git a/config/default.ts b/config/default.ts index 8198e26..99f49be 100644 --- a/config/default.ts +++ b/config/default.ts @@ -20,7 +20,7 @@ export default { }, userAccessToken: { - cookieName: `rcal-session-${NODE_ENV}`, + cookieName: `rcal-session`, cookieDomain: '', ttl: 30 * 24 * 60 * 60, // in seconds refreshTtl: 180 * 24 * 60 * 60, // in seconds diff --git a/config/production.ts b/config/production.ts new file mode 100644 index 0000000..fc05df2 --- /dev/null +++ b/config/production.ts @@ -0,0 +1,5 @@ +export default { + userAccessToken: { + cookieName: `rcal-session`, + }, +}; diff --git a/config/staging.ts b/config/staging.ts index ec46fb6..d899a46 100644 --- a/config/staging.ts +++ b/config/staging.ts @@ -14,4 +14,8 @@ export default { baseUrl: 'https://rds-website-calendar.fly.dev', }, }, + + userAccessToken: { + cookieName: `rcal-session-staging`, + }, };