DigitalConsumer.FixMyGlass/src/router/methods/route-logic/load-session.js
2025-05-07 11:44:55 -04:00

11 lines
360 B
JavaScript

import { loadSessionIfPresent } from "@/helpers/heritage-integration/order-helper";
import { routeData } from "@/router/constants/routes";
export async function loadSessionBeforeEnter(to, from) {
const loadSessionResponse = await loadSessionIfPresent(false, to.name);
return {
name: routeData.AUTO_ROUTE.name,
replace: true,
};
}