super-fit-web-app / src / utils / session.ts
session.ts
Raw
export const BaseUserData = { 
  id: '',
  stripeCustomerId: '',
  firstName: '',
  emailVerified: null,
  isSubscribed: false,
  admin: false,
  isLoggedIn: false,
  loginAt: 0
};

export const cookieOptions = {
  cookieName: 'SuperFit-auth',
  expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 14), // 14 days
  maxAge: 1000 * 60 * 60 * 24 * 14, // 14 days
  secure: process.env.VERCEL_ENV === 'production',
  sameSite: 'strict',
}