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