Skip to content

Commit

Permalink
fix: double cookie refresh in server hooks (#1586)
Browse files Browse the repository at this point in the history
Remove sending server sessionid to client/double refresh
  • Loading branch information
evalstate authored Nov 25, 2024
1 parent 159bda2 commit 1a92a9d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ export const handle: Handle = async ({ event, resolve }) => {
];

if (event.request.method === "POST") {
refreshSessionCookie(event.cookies, event.locals.sessionId);

if (nativeFormContentTypes.includes(requestContentType)) {
const origin = event.request.headers.get("origin");

Expand Down

0 comments on commit 1a92a9d

Please sign in to comment.