Skip to content

Commit 77fcd9e

Browse files
committed
bug fix
1 parent 27b6aa1 commit 77fcd9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/logout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function getLogoutHandler(
2727
Location: logoutAfterPath,
2828
}
2929

30-
setCookie(headers, { name: "auth_session", value: "", httpOnly: true, path: "/", expires: -1 });
30+
setCookie(headers, { name: "auth_session", value: "", httpOnly: true, path: "/", maxAge: -1 });
3131

3232
return new Response("Unauthorized", {
3333
status: 302,

0 commit comments

Comments
 (0)