import {Session} from "~/auth/Session"; import {useRuntimeConfig} from "#imports"; export default defineEventHandler(async (event) => { const cookie = getCookie(event, Session.COOKIE); if (cookie == null) { await sendRedirect(event, useRuntimeConfig().public.idpUrl, 302); } });