Skip to content

Commit 448b545

Browse files
authored
Merge pull request #24 from kinde-oss/fix/cookie-policy
fix: cookie policy
2 parents 14f1d13 + 92215d7 commit 448b545

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: process.env.NODE_ENV === 'production',
11+
sameSite: 'lax',
12+
httpOnly: true
1013
}
1114
);
1215
};

0 commit comments

Comments
 (0)