Merge remote-tracking branch 'origin/feature/IO-2776-cdk-fortellis' into feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration

This commit is contained in:
Dave
2025-10-06 14:48:37 -04:00

View File

@@ -39,7 +39,7 @@ const redisSocketEvents = ({
} }
try { try {
const user = await admin.auth().verifyIdToken(token, true); const user = await admin.auth().verifyIdToken(token);
socket.user = user; socket.user = user;
socket.bodyshopId = bodyshopId; socket.bodyshopId = bodyshopId;
socket.data = socket.data || {}; socket.data = socket.data || {};
@@ -73,7 +73,7 @@ const redisSocketEvents = ({
} }
try { try {
const user = await admin.auth().verifyIdToken(token, true); const user = await admin.auth().verifyIdToken(token);
if (currentTimestamp < latestTokenTimestamp) { if (currentTimestamp < latestTokenTimestamp) {
createLogEvent(socket, "warn", "Outdated token validation skipped."); createLogEvent(socket, "warn", "Outdated token validation skipped.");
return; return;
@@ -88,7 +88,6 @@ const redisSocketEvents = ({
socket.handshake.auth.token = token; socket.handshake.auth.token = token;
socket.handshake.auth.bodyshopId = bodyshopId; socket.handshake.auth.bodyshopId = bodyshopId;
} }
await refreshUserSocketTTL(user.email, bodyshopId); await refreshUserSocketTTL(user.email, bodyshopId);
socket.emit("token-updated", { success: true }); socket.emit("token-updated", { success: true });
} catch (error) { } catch (error) {