Maybe fixed cookie problem

This commit is contained in:
2026-02-14 15:58:36 +01:00
parent 32fd259ae2
commit ed9d76798e
-2
View File
@@ -33,9 +33,7 @@ export async function GET(request: NextRequest) {
const c = await cookies(); const c = await cookies();
c.set("github_access", accessToken, { c.set("github_access", accessToken, {
httpOnly: true,
path: "/", path: "/",
secure: process.env.NODE_ENV === "production",
}); });
return NextResponse.redirect(`${process.env.ORIGIN}/overview`); return NextResponse.redirect(`${process.env.ORIGIN}/overview`);