fix(invite): add secure flag to pf_invite cookie for HTTPS production
This commit is contained in:
1 parent
00908545c4
commit
b38c9b046e
1 file changed
+1
@@ -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: "/",
|
||||
|
||||
Reference in new issue
Block a user