IO-2776 Remove issue checking revoked token causing log issues on wss.

This commit is contained in:
Patrick Fic
2025-10-06 11:20:52 -07:00
parent 0d9a7dda53
commit 92b05a290e

View File

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