Skip to content

Commit

Permalink
Add temporary console log to test
Browse files Browse the repository at this point in the history
  • Loading branch information
krischarbonneau committed May 3, 2024
1 parent 0b8c6a5 commit 33d9a09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ const httpsAgent = process.env.AUTH_DISABLED
ca: fs.readFileSync('/usr/local/share/ca-certificates/env.crt'),
})

//Temporary to test
if (!process.env.AUTH_DISABLED) {
const cert = fs.readFileSync('/usr/local/share/ca-certificates/env.crt')
console.log(cert)
}

async function decryptJwe(jwe: string, jwk: any) {
const key = await jose.importJWK({ ...jwk })
const decryptResult = await jose.compactDecrypt(jwe, key, {
Expand Down

0 comments on commit 33d9a09

Please sign in to comment.