Skip to content

Commit a8670a0

Browse files
committed
fix: cookie policy
1 parent a5877bb commit a8670a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/hooks/sessionHooks.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ export async function sessionHooks({event}: {event: EventHandler}) {
66
`kinde_${itemKey}`,
77
typeof itemValue === 'string' ? itemValue : (JSON.stringify(itemValue) as string),
88
{
9-
path: '/'
9+
path: '/',
10+
secure: true,
11+
sameSite: 'lax',
12+
httpOnly: true
1013
}
1114
);
1215
};

0 commit comments

Comments
 (0)