fix(invite): add secure flag to pf_invite cookie for HTTPS production

This commit is contained in:
admin committed 2026-06-21 20:47:19 +02:00
1 parent 00908545c4
commit b38c9b046e
1 file changed
+1
+1
View File
@@ -21,6 +21,7 @@ async function submitCode(formData: FormData) {
const cookieStore = await cookies();
cookieStore.set("pf_invite", code, {
httpOnly: true,
secure: process.env.NODE_ENV === "production",
sameSite: "lax",
maxAge: 60 * 60, // 1 hour
path: "/",