fix: safari cookie issue

This commit is contained in:
Michael Freno
2026-01-13 19:19:00 -05:00
parent b612d12a51
commit 48f01b6171
4 changed files with 39 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ export async function createAuthSession(
// Explicitly seal/flush the session to ensure cookie is written
// This is important in serverless environments where response might stream early
const { sealSession } = await import("vinxi/http");
sealSession(event, configWithMaxAge);
await sealSession(event, configWithMaxAge);
console.log("[Session Create] Session sealed");