From 521d64285c4904b861866241136992d1f6bc1e1a Mon Sep 17 00:00:00 2001 From: Raditya Harya Date: Wed, 24 Apr 2024 15:07:29 +0700 Subject: [PATCH] auth workflow --- src/middlewares/handlers/userApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewares/handlers/userApi.ts b/src/middlewares/handlers/userApi.ts index bdfa182..8e7be21 100644 --- a/src/middlewares/handlers/userApi.ts +++ b/src/middlewares/handlers/userApi.ts @@ -7,7 +7,7 @@ import { Logger } from "~/lib/log"; const logger = new Logger("middleware:userApi"); -const matchPaths = ["/api/user"]; +const matchPaths = ["/api/user", "/api/workflow"]; async function getSession(req: NextRequest) { const response = await fetch(process.env.NEXTAUTH_URL + "/api/auth/session", {