Skip to content

Commit

Permalink
feat: return signer for client attestation
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Nov 24, 2024
1 parent 0f60387 commit a9af8ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/oauth2/src/client-attestation/clent-attestation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ export async function verifyClientAttestationJwt(options: VerifyClientAttestatio
payloadSchema: vClientAttestationJwtPayload,
})

const signer = jwtSignerFromJwt({ header, payload })

await verifyJwt({
signer,
const { signer } = await verifyJwt({
signer: jwtSignerFromJwt({ header, payload }),
now: options.now,
header,
payload,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export async function verifyClientAttestationPopJwt(options: VerifyClientAttesta
)
}

await verifyJwt({
const { signer } = await verifyJwt({
signer: {
alg: header.alg,
method: 'jwk',
Expand All @@ -150,6 +150,7 @@ export async function verifyClientAttestationPopJwt(options: VerifyClientAttesta
return {
header,
payload,
signer,
}
}

Expand Down

0 comments on commit a9af8ba

Please sign in to comment.