Skip to content

Commit

Permalink
chore: load alg: jwtIssuer.alg for x5c
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Aug 28, 2024
1 parent c9ff2fc commit 1d86685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/siop-oid4vp/lib/request-object/RequestObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class RequestObject {
} else if (jwtIssuer.method === 'x5c') {
this.payload.iss = jwtIssuer.issuer

const header = { x5c: jwtIssuer.x5c, typ: 'JWT' }
const header = { x5c: jwtIssuer.x5c, typ: 'JWT', alg: jwtIssuer.alg }
this.jwt = await this.opts.createJwtCallback(jwtIssuer, { header, payload: this.payload })
} else if (jwtIssuer.method === 'jwk') {
if (!this.payload.client_id) {
Expand Down

0 comments on commit 1d86685

Please sign in to comment.