Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
auer-martin committed Jul 12, 2024
1 parent a5755ff commit 2da9205
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class AuthorizationRequest {
if (parsedJwt) {
requestObjectPayload = parsedJwt.payload as RequestObjectPayload

const jwtVerifier = await getRequestObjectJwtVerifier({ ...parsedJwt, payload: requestObjectPayload }, { type: 'request-object', raw: jwt })
const jwtVerifier = await getRequestObjectJwtVerifier({ ...parsedJwt, payload: requestObjectPayload }, { raw: jwt })
const result = await opts.verifyJwtCallback(jwtVerifier, { ...parsedJwt, raw: jwt })
if (!result) {
throw Error(SIOPErrors.ERROR_VERIFYING_SIGNATURE)
Expand Down
2 changes: 1 addition & 1 deletion packages/siop-oid4vp/lib/types/JwtVerifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const getRequestObjectJwtVerifier = async (
} else if (clientIdScheme === 'verifier_attestation') {
const verifierAttestationSubtype = 'verifier-attestation+jwt'
if (!jwt.header.jwt) {
throw new Error(SIOPErrors.MISSING_ATTESTATION_JWT)
throw new Error(SIOPErrors.MISSING_ATTESTATION_JWT_WITH_CLIENT_ID_SCHEME_ATTESTATION)
}
// TODO: is this correct? not 100% sure based on the spec
if (jwt.header.typ !== verifierAttestationSubtype) {
Expand Down

0 comments on commit 2da9205

Please sign in to comment.