Unverified Commit 29b11000 authored by dpyzo0o's avatar dpyzo0o Committed by GitHub

fix logout in with-iron-session example (#12704)

parent 653098d3
...@@ -2,6 +2,5 @@ import withSession from '../../lib/session' ...@@ -2,6 +2,5 @@ import withSession from '../../lib/session'
export default withSession(async (req, res) => { export default withSession(async (req, res) => {
req.session.destroy() req.session.destroy()
await req.session.save()
res.json({ isLoggedIn: false }) res.json({ isLoggedIn: false })
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment