chore: add middleware for logout from current web

This commit is contained in:
Matilda Landström
2024-05-22 08:55:04 +02:00
parent 9a92e637b9
commit dec41fa477
2 changed files with 33 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import { findLang } from "./constants/languages"
import * as authRequired from "./middlewares/authRequired"
import * as cmsContent from "./middlewares/cmsContent"
import * as currentWebLogin from "./middlewares/currentWebLogin"
import * as currentWebLogout from "./middlewares/currentWebLogout"
import * as handleAuth from "./middlewares/handleAuth"
import * as myPages from "./middlewares/myPages"
import * as webView from "./middlewares/webView"
@@ -26,6 +27,7 @@ export const middleware: NextMiddleware = async (request, event) => {
const middlewares = [
currentWebLogin,
currentWebLogout,
authRequired,
handleAuth,
myPages,