From d67e62ffd3a86e18d3c3fb6ca9c906d593e4aa69 Mon Sep 17 00:00:00 2001 From: Dan Goss Date: Thu, 5 Sep 2024 20:40:14 +0100 Subject: [PATCH] [api] minor edits 3 --- api.planx.uk/modules/auth/controller.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api.planx.uk/modules/auth/controller.ts b/api.planx.uk/modules/auth/controller.ts index 458487ad6c..9c7e6351ca 100644 --- a/api.planx.uk/modules/auth/controller.ts +++ b/api.planx.uk/modules/auth/controller.ts @@ -8,6 +8,13 @@ export const failedLogin: RequestHandler = (_req, _res, next) => }); export const logout: RequestHandler = (req, res) => { + + console.log("Logging out due to request...") + console.log(req) + + console.log("And the user specifically...") + console.log(req.user) + req.logout(() => { // do nothing });