From 8d6bf91d12f295bd0f6b4461c7c8a971a56a5f95 Mon Sep 17 00:00:00 2001 From: Ephraim Duncan <55143799+ephraimduncan@users.noreply.github.com> Date: Wed, 12 Mar 2025 05:09:37 +0000 Subject: [PATCH] fix: persist theme cookie for a much longer time (#1693) --- apps/remix/app/storage/theme-session.server.ts | 1 + package-lock.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/remix/app/storage/theme-session.server.ts b/apps/remix/app/storage/theme-session.server.ts index f98200706..193b8fecd 100644 --- a/apps/remix/app/storage/theme-session.server.ts +++ b/apps/remix/app/storage/theme-session.server.ts @@ -12,6 +12,7 @@ const themeSessionStorage = createCookieSessionStorage({ secrets: ['insecure-secret-do-not-care'], secure: useSecureCookies, domain: getCookieDomain(), + maxAge: 60 * 60 * 24 * 365, }, }); diff --git a/package-lock.json b/package-lock.json index b69e388bc..58e67c573 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42172,4 +42172,4 @@ } } } -} \ No newline at end of file +}