Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Oct 12, 2024
1 parent 3dbb314 commit 9c22a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/sessions/cookies/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import type { RequestEvent } from "@sveltejs/kit";
// ...

export function setSessionTokenCookie(event: RequestEvent, token: string, expiresAt: Date): void {
context.cookies.set("session", token, {
event.cookies.set("session", token, {
httpOnly: true,
sameSite: "lax",
expires: expiresAt,
Expand All @@ -37,7 +37,7 @@ export function setSessionTokenCookie(event: RequestEvent, token: string, expire
}

export function deleteSessionTokenCookie(event: RequestEvent): void {
context.cookies.set("session", "", {
event.cookies.set("session", "", {
httpOnly: true,
sameSite: "lax",
maxAge: 0,
Expand Down

0 comments on commit 9c22a51

Please sign in to comment.