Skip to content

Instantly share code, notes, and snippets.

@itwasmattgregg
Created October 22, 2022 21:25
Show Gist options
  • Save itwasmattgregg/55cd8eff0ccfbbc5aeb730032d4e4e6e to your computer and use it in GitHub Desktop.
Save itwasmattgregg/55cd8eff0ccfbbc5aeb730032d4e4e6e to your computer and use it in GitHub Desktop.
import { withSessionRoute } from '@utils/session';
export default withSessionRoute(async (req, res) => {
req.session.destroy();
res.json({ isLoggedIn: false });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment