2026-03-15 09:03:40 +01:00

11 lines
303 B
TypeScript

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);
}
});