Skip to content

Commit

Permalink
[api] minor edits 3
Browse files Browse the repository at this point in the history
  • Loading branch information
freemvmt committed Sep 5, 2024
1 parent 542905c commit d67e62f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api.planx.uk/modules/auth/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit d67e62f

Please sign in to comment.