From ecb803e78da3aa1c3f34f4b1220c763feadebe77 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Sat, 9 Mar 2024 22:11:12 +0600 Subject: [PATCH] fix: expire visit cookie in 1 hour --- src/lib/jwt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/jwt.ts b/src/lib/jwt.ts index b8fd57caf..e7d0ab7a0 100644 --- a/src/lib/jwt.ts +++ b/src/lib/jwt.ts @@ -57,7 +57,7 @@ export function visitAIRoadmap(roadmapId: string) { Cookies.set(`crv-${roadmapId}`, '1', { path: '/', - expires: 30, + expires: 1 / 24, // 1 hour sameSite: 'lax', secure: !import.meta.env.DEV, domain: import.meta.env.DEV ? 'localhost' : '.roadmap.sh',