mirror of
https://github.com/PeterMaquiran/tvone.git
synced 2026-04-23 12:35:51 +00:00
This commit is contained in:
@@ -51,8 +51,8 @@ export async function GET(req: Request) {
|
|||||||
secure: isHttps,
|
secure: isHttps,
|
||||||
sameSite: "none",
|
sameSite: "none",
|
||||||
path: "/",
|
path: "/",
|
||||||
|
...(env.COOKIE_DOMAIN ? { domain: env.COOKIE_DOMAIN } : {}),
|
||||||
maxAge: data.expires_in,
|
maxAge: data.expires_in,
|
||||||
...(BASE_URL ? { BASE_URL } : {}),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { env } from "@/lib/env";
|
||||||
import { NextResponse } from "next/server";
|
import { NextResponse } from "next/server";
|
||||||
|
|
||||||
export async function POST(req: Request) {
|
export async function POST(req: Request) {
|
||||||
@@ -9,6 +10,7 @@ export async function POST(req: Request) {
|
|||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: true,
|
secure: true,
|
||||||
sameSite: "none",
|
sameSite: "none",
|
||||||
|
...(env.COOKIE_DOMAIN ? { domain: env.COOKIE_DOMAIN } : {}),
|
||||||
path: "/",
|
path: "/",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user