diff --git a/packages/hoppscotch-backend/src/auth/helper.ts b/packages/hoppscotch-backend/src/auth/helper.ts index 979dc46d..a2a9371d 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, }; };