Skip to content

The Open Source DocuSign Alternative.

272 B
Raw Blame
import { shouldUseSecureCookies } from '@documenso/lib/constants/auth';
import { createCookie } from 'react-router';

export const langCookie = createCookie('lang', {
  path: '/',
  maxAge: 60 * 60 * 24 * 365 * 2,
  httpOnly: true,
  secure: shouldUseSecureCookies(),
});