diff --git a/apps/desktop/src/main/browser/browser-profile.ts b/apps/desktop/src/main/browser/browser-profile.ts index 2ddbe81..8d71f3e 100644 --- a/apps/desktop/src/main/browser/browser-profile.ts +++ b/apps/desktop/src/main/browser/browser-profile.ts @@ -306,8 +306,15 @@ async function readSourceCookies(root: string, staging: string): Promise 0 THEN expires_utc / 1000000 - 11644473600 ELSE 0 END AS expires_sec, ' + + 'samesite FROM cookies' + ) .all() const cookies: BrowserCookieSeed[] = [] let skipped = 0 @@ -321,7 +328,7 @@ async function readSourceCookies(root: string, staging: string): Promise 0 ? { expirationDate: r.expires_utc / 1_000_000 - 11_644_473_600 } : {}), + ...(r.expires_sec > 0 ? { expirationDate: r.expires_sec } : {}), ...(mapSameSite(r.samesite) ? { sameSite: mapSameSite(r.samesite) } : {}) }) } catch {