export const SESSION_COOKIE_NAME = 'hgc_session';

export const SESSION_DURATION_MS = 7 * 24 * 60 * 60 * 1000;
export const SESSION_ABSOLUTE_MAX_DURATION_MS = 30 * 24 * 60 * 60 * 1000;
export const SESSION_REMEMBER_ME_DURATION_MS = 30 * 24 * 60 * 60 * 1000;

export function createSessionExpiry(from: Date = new Date()): Date {
  return new Date(from.getTime() + SESSION_DURATION_MS);
}
