Maybe fixed cookie problem
This commit is contained in:
@@ -33,9 +33,7 @@ export async function GET(request: NextRequest) {
|
||||
|
||||
const c = await cookies();
|
||||
c.set("github_access", accessToken, {
|
||||
httpOnly: true,
|
||||
path: "/",
|
||||
secure: process.env.NODE_ENV === "production",
|
||||
});
|
||||
|
||||
return NextResponse.redirect(`${process.env.ORIGIN}/overview`);
|
||||
|
||||
Reference in New Issue
Block a user