Skip to content

Commit

Permalink
fix: logout functionality (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangit86 authored Jul 10, 2024
1 parent ca32dde commit f31bb31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,11 @@ registerErrorRoute(router)
// all routes registered under the /consent path are protected by CSRF
router.use("/consent", doubleCsrfProtection)
router.use("/consent", csrfErrorHandler(invalidCsrfTokenError))

registerConsentRoute(router)

// all routes registered under the /logout path are protected by CSRF
router.use("/logout", doubleCsrfProtection)
router.use("/logout", csrfErrorHandler(invalidCsrfTokenError))
registerLogoutRoute(router)

router.get("/", (req: Request, res: Response) => {
Expand Down
3 changes: 3 additions & 0 deletions views/logout.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div id="logout">
{{{card}}}
</div>

0 comments on commit f31bb31

Please sign in to comment.