Skip to content

Commit

Permalink
docs: fix express example (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryScaletta authored Feb 1, 2024
1 parent 966b776 commit 3e30b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/guides/validate-session-cookies/express.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ app.use((req, res, next) => {
res.appendHeader("Set-Cookie", lucia.createSessionCookie(session.id).serialize());
}
if (!session) {
res.appendHeader("Set-Cookie", lucia.createSessionCookie(session.id).serialize());
res.appendHeader("Set-Cookie", lucia.createBlankSessionCookie().serialize());
}
res.locals.user = user;
res.locals.session = session;
Expand Down

0 comments on commit 3e30b6f

Please sign in to comment.