Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

345 B
Raw Blame
"use server";

import { cookies } from "next/headers";

export async function setVerificationEmail(email: string) {
  const cookieStore = await cookies();

  cookieStore.set("verification-email", email, {
    httpOnly: true,
    secure: process.env.NEXT_PUBLIC_BASE_URL?.startsWith("https://"),
    sameSite: "lax",
    maxAge: 15 * 60,
  });
}