Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
"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,
});
}