From edd186bdfeeaaddc1501b0c1130e1b855b39844b Mon Sep 17 00:00:00 2001 From: Balu Babu Date: Wed, 8 Feb 2023 15:48:40 +0530 Subject: [PATCH] chore: changed const names in subscriptionContextCookieParser --- packages/hoppscotch-backend/src/auth/helper.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/hoppscotch-backend/src/auth/helper.ts b/packages/hoppscotch-backend/src/auth/helper.ts index 979dc46dd..a2a9371de 100644 --- a/packages/hoppscotch-backend/src/auth/helper.ts +++ b/packages/hoppscotch-backend/src/auth/helper.ts @@ -59,10 +59,10 @@ export const authCookieHandler = ( * @returns AuthTokens for JWT strategy to use */ export const subscriptionContextCookieParser = (rawCookies: string) => { - const access_tokenString = rawCookies.split(';')[0].split('=')[1]; - const refresh_tokenString = rawCookies.split(';')[1].split('=')[1]; + const access_token = rawCookies.split(';')[0].split('=')[1]; + const refresh_token = rawCookies.split(';')[1].split('=')[1]; return { - access_token: access_tokenString, - refresh_token: refresh_tokenString, + access_token, + refresh_token, }; };