INSR-8742:

Fixing the issue with missing session key.
This commit is contained in:
Jeremy-Z 2026-03-06 09:56:36 -05:00
parent 62430bee8c
commit ecf5ba48ab
2 changed files with 4 additions and 4 deletions

View file

@ -14,8 +14,7 @@ const cookieNames = Object.freeze({
// Existing Safelite.com cookies
DXDEV: 'dxdev',
SESSION_ID: 'sid',
SESSION_KEY: 'skey'
SESSION_ID: 'sid'
});
const cookieExpirations = Object.freeze({

View file

@ -165,7 +165,7 @@ export function getDeviceIdValue() {
Gets value of skey cookie, returns 0 if not found.
*/
export function getSessionKeyValue() {
const cookieValue = getCookieValueByName(cookieNames.SESSION_KEY);
const cookieValue = getCookieValueByName(cookieNames.ISS_SESSION_KEY);
if (cookieValue) {
return cookieValue;
@ -281,7 +281,8 @@ export function setSessionIdIfUnset(value) {
}
export function setSessionKeyIfUnset(value) {
if (!isCookieSet(cookieNames.ISS_SESSION_KEY)) {
console.error("Current SessionKey Value: " + getSessionKeyValue() + " - New Value: " + value);
if (getSessionKeyValue() === 0) {
setCookieProperties(
{
[cookieNames.ISS_SESSION_KEY]: value