fix: expire visit cookie in 1 hour

fix/ai-roadmap
Arik Chakma 9 months ago
parent a6189f45ef
commit ecb803e78d
  1. 2
      src/lib/jwt.ts

@ -57,7 +57,7 @@ export function visitAIRoadmap(roadmapId: string) {
Cookies.set(`crv-${roadmapId}`, '1', { Cookies.set(`crv-${roadmapId}`, '1', {
path: '/', path: '/',
expires: 30, expires: 1 / 24, // 1 hour
sameSite: 'lax', sameSite: 'lax',
secure: !import.meta.env.DEV, secure: !import.meta.env.DEV,
domain: import.meta.env.DEV ? 'localhost' : '.roadmap.sh', domain: import.meta.env.DEV ? 'localhost' : '.roadmap.sh',

Loading…
Cancel
Save