From 5a2edc160e54861c0432198c5ab5680f43a46fa0 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Damaschke Date: Wed, 27 Dec 2023 19:25:20 +0100 Subject: [PATCH] fix(imports): :recycle: Added additional explicit h3 imports --- src/runtime/server/handler/callback.ts | 1 + src/runtime/server/handler/login.get.ts | 1 + src/runtime/server/handler/logout.get.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/runtime/server/handler/callback.ts b/src/runtime/server/handler/callback.ts index 1162b96..b94191d 100644 --- a/src/runtime/server/handler/callback.ts +++ b/src/runtime/server/handler/callback.ts @@ -1,5 +1,6 @@ import { callbackEventHandler } from '../lib/oidc' import { setUserSession } from '../utils/session' +import { sendRedirect } from 'h3' export default callbackEventHandler({ async onSuccess(event, { user }) { diff --git a/src/runtime/server/handler/login.get.ts b/src/runtime/server/handler/login.get.ts index 3cbdaa3..f17ce19 100644 --- a/src/runtime/server/handler/login.get.ts +++ b/src/runtime/server/handler/login.get.ts @@ -1,4 +1,5 @@ import { loginEventHandler } from '../lib/oidc' +import { sendRedirect } from 'h3' export default loginEventHandler({ async onSuccess(event) { diff --git a/src/runtime/server/handler/logout.get.ts b/src/runtime/server/handler/logout.get.ts index af9e3a1..cc38fef 100644 --- a/src/runtime/server/handler/logout.get.ts +++ b/src/runtime/server/handler/logout.get.ts @@ -1,4 +1,5 @@ import { logoutEventHandler } from '../lib/oidc' +import { sendRedirect } from 'h3' export default logoutEventHandler({ async onSuccess(event) {