From e3705e8aa3a31bb4fd09ca2738763f047e2320e0 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Fri, 4 Nov 2022 08:30:44 +0000 Subject: [PATCH] Add extra auth logging to authenticated.ts --- packages/backend-core/src/middleware/authenticated.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend-core/src/middleware/authenticated.ts b/packages/backend-core/src/middleware/authenticated.ts index a3c6b67cde..d8f2b33399 100644 --- a/packages/backend-core/src/middleware/authenticated.ts +++ b/packages/backend-core/src/middleware/authenticated.ts @@ -152,6 +152,7 @@ export = ( return next() } } catch (err: any) { + console.error("Auth Error", err?.message || err) // invalid token, clear the cookie if (err && err.name === "JsonWebTokenError") { clearCookie(ctx, Cookies.Auth)