Skip to content

Commit

Permalink
John the cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed Dec 6, 2024
1 parent 9fc2470 commit ed015d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/auth/callback/unilogin/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`, {
Expand Down

0 comments on commit ed015d2

Please sign in to comment.