Skip to content

Commit

Permalink
Uncomment seal data stuff now
Browse files Browse the repository at this point in the history
while testing John cookie
  • Loading branch information
spaceo committed Dec 6, 2024
1 parent ed015d2 commit afda2c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/auth/callback/unilogin/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sealData } from "iron-session"
// import { sealData } from "iron-session"
import { NextRequest, NextResponse } from "next/server"
import * as client from "openid-client"

Expand Down Expand Up @@ -81,12 +81,12 @@ export async function GET(request: NextRequest) {
// return NextResponse.redirect(goConfig("app.url"))
}

const sealed = await sealData(
{
...session,
},
sessionOptions
)
// const sealed = await sealData(
// {
// ...session,
// },
// sessionOptions
// )

// TODO: When we have verified that it works in Lagoon
// then see if we can use the session.save() instead of the "handmade" cookie here.
Expand Down

0 comments on commit afda2c6

Please sign in to comment.