diff --git a/server/middleware/auth.ts b/server/middleware/auth.ts index 1f2a8ca..305692c 100644 --- a/server/middleware/auth.ts +++ b/server/middleware/auth.ts @@ -6,6 +6,7 @@ export default defineEventHandler(async (event) => const cookie = getCookie(event, Session.COOKIE); if (cookie == null) { + console.log("Request is unauthorized. Redirect to IDP."); await sendRedirect(event, useRuntimeConfig().public.idpUrl, 302); } }); \ No newline at end of file