From ed015d205cefd5054bf314dd187626ade2801722 Mon Sep 17 00:00:00 2001 From: Mikkel Jakobsen Date: Fri, 6 Dec 2024 10:45:38 +0100 Subject: [PATCH] John the cookie --- app/auth/callback/unilogin/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/auth/callback/unilogin/route.ts b/app/auth/callback/unilogin/route.ts index cbd14f91..281f5ce2 100644 --- a/app/auth/callback/unilogin/route.ts +++ b/app/auth/callback/unilogin/route.ts @@ -94,7 +94,7 @@ export async function GET(request: NextRequest) { const headers = new Headers(request.headers) headers.set( "Set-Cookie", - `${sessionOptions.cookieName}=${sealed}; Max-Age=${sessionOptions.ttl}; Path=/; HttpOnly; ${sessionOptions.cookieOptions?.secure && "Secure"}` + `${sessionOptions.cookieName}=john; Max-Age=${sessionOptions.ttl}; Path=/; HttpOnly; ${sessionOptions.cookieOptions?.secure && "Secure"}` ) return NextResponse.redirect(`${goConfig("app.url")}/user/profile`, {