diff --git a/packages/marko-web-omeda-identity-x/middleware/set-identity-cookie.js b/packages/marko-web-omeda-identity-x/middleware/set-identity-cookie.js index c369cb9a4..e4f0c8410 100644 --- a/packages/marko-web-omeda-identity-x/middleware/set-identity-cookie.js +++ b/packages/marko-web-omeda-identity-x/middleware/set-identity-cookie.js @@ -39,18 +39,11 @@ module.exports = ({ }) => asyncRoute(async (req, res, next) => { /** @type {OIDXRequest} */ const { identityX: idx, $omedaGraphQLClient: omeda } = req; - const { user } = await idx.loadActiveContext(); const cookie = idx.getIdentity(res); // Don't overwrite an existing cookie if (cookie) return next(); - // Set logged in user identity - if (user && user.id) { - idx.setIdentityCookie(user.id); - return next(); - } - // get oly enc id. if we don't have one, bail const omedaId = findOlyticsId(req, res); if (!omedaId) return next();