From 1d8668588979978cc1d95e2845388a3f4c6a3400 Mon Sep 17 00:00:00 2001 From: sanderPostma Date: Wed, 28 Aug 2024 16:10:35 +0200 Subject: [PATCH] chore: load alg: jwtIssuer.alg for x5c --- packages/siop-oid4vp/lib/request-object/RequestObject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/siop-oid4vp/lib/request-object/RequestObject.ts b/packages/siop-oid4vp/lib/request-object/RequestObject.ts index 00bd39c8..fba9bcb1 100644 --- a/packages/siop-oid4vp/lib/request-object/RequestObject.ts +++ b/packages/siop-oid4vp/lib/request-object/RequestObject.ts @@ -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) {