Skip to content

Commit

Permalink
chore: send openidFederationMetadata.jwt as payload
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Oct 29, 2024
1 parent 5ad6b02 commit 86e798c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/issuer-rest/lib/oid4vci-api-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ export function getMetadataEndpoints<DIDDoc extends object>(router: Router, issu
router.get(WellKnownEndpoints.OAUTH_AS, authorizationServerHandler)

const openidFederationHandler = (request: Request, response: Response) => {
if(!issuer.openidFederationMetadata) {
if(!issuer.openidFederationMetadata || !issuer.openidFederationMetadata.jwt) {
return response.status(404).send()

Check warning on line 410 in packages/issuer-rest/lib/oid4vci-api-functions.ts

View check run for this annotation

Codecov / codecov/patch

packages/issuer-rest/lib/oid4vci-api-functions.ts#L410

Added line #L410 was not covered by tests
}
return response.send(issuer.openidFederationMetadata.jwt)

Check warning on line 412 in packages/issuer-rest/lib/oid4vci-api-functions.ts

View check run for this annotation

Codecov / codecov/patch

packages/issuer-rest/lib/oid4vci-api-functions.ts#L412

Added line #L412 was not covered by tests
Expand Down

0 comments on commit 86e798c

Please sign in to comment.