✨ Add oidc
This commit is contained in:
parent
424b9ed713
commit
f3861ccf2b
@ -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);
|
||||
}
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user