> For the complete documentation index, see [llms.txt](https://pqko.gitbook.io/pqko-discord/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pqko.gitbook.io/pqko-discord/discord-authentication/setting-logout-page.md).

# Setting Logout Page

You can use the one that comes with pqko-discord or the manual way.

Pqko-Discord:

```javascript
app.get("/logout", (req, res) => {
    if(req.logged == false) return res.redirect("/")

    auth.logout(req, res) // Passes nothing back
    return res.redirect("/")
})
```

Manual:

```javascript
app.get("/logout", (req, res) => {
    if(req.logged == false) return res.redirect("/")

    res.clearCookie("token")
    return res.redirect("/")
})
```
