Skip to content

Commit 92215d7

Browse files
committed
fix: safari cookie
1 parent a8670a0 commit 92215d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/hooks/sessionHooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function sessionHooks({event}: {event: EventHandler}) {
77
typeof itemValue === 'string' ? itemValue : (JSON.stringify(itemValue) as string),
88
{
99
path: '/',
10-
secure: true,
10+
secure: process.env.NODE_ENV === 'production',
1111
sameSite: 'lax',
1212
httpOnly: true
1313
}

0 commit comments

Comments
 (0)