aboutsummaryrefslogtreecommitdiffstats
path: root/pages/api/logout.js
blob: d3940561788a34a33773a44cfc9c99fa3716cd4e (plain) (blame)
1
2
3
4
5
6
import withSession from 'hocs/withSession'

export default withSession(async (req, res) => {
  req.session.destroy()
  res.json({ isLoggedIn: false })
})