feat: add Go migration compatibility foundation

This commit is contained in:
zn-admin committed 2026-08-13 10:35:52 +08:00
1 parent 7de3300034
commit 716a8031b1
27 files changed
+2582

No files matched your search

+3
View File
@@ -13,6 +13,9 @@ export function setSessionCookieValue(
expires: Date
) {
const chunks = chunkCookieValue(value);
if (chunks.length > MAX_SESSION_COOKIE_CHUNKS) {
throw new RangeError("Session cookie exceeds maximum supported size");
}
const options = {
httpOnly: true,
sameSite: "lax" as const,