Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: changed const names in subscriptionContextCookieParser

Balu Babuedd186bdfeea
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 <AuthTokens>{
- access_token: access_tokenString,
- refresh_token: refresh_tokenString,
+ access_token,
+ refresh_token,
};
};