From 46aca0e17370b16c6f4c8f5908edef304a4e4be3 Mon Sep 17 00:00:00 2001 From: Berend Sliedrecht Date: Thu, 22 Jun 2023 11:03:51 +0200 Subject: [PATCH] fix: claims are not required Signed-off-by: Berend Sliedrecht --- src/helpers/SIOPSpecVersion.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/SIOPSpecVersion.ts b/src/helpers/SIOPSpecVersion.ts index f592d831..6d10c7f2 100644 --- a/src/helpers/SIOPSpecVersion.ts +++ b/src/helpers/SIOPSpecVersion.ts @@ -16,6 +16,7 @@ function isJWTVC1Payload(authorizationRequest: AuthorizationRequestPayload) { authorizationRequest.client_id.toLowerCase().startsWith('did:') && authorizationRequest.redirect_uri && (authorizationRequest.registration_uri || authorizationRequest.registration) && + authorizationRequest.claims && authorizationRequest.claims['vp_token'] ); }