Skip to content

Commit 2978353

Browse files
* Updated credo-ts dependencies from 0.5.0 to 0.5.1. (#19)
1 parent 30d7cca commit 2978353

File tree

3 files changed

+138
-102
lines changed

3 files changed

+138
-102
lines changed

agent/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "agent",
33
"dependencies": {
4-
"@credo-ts/askar": "^0.5.0",
5-
"@credo-ts/cheqd": "^0.5.0",
6-
"@credo-ts/core": "^0.5.0",
7-
"@credo-ts/indy-vdr": "^0.5.0",
8-
"@credo-ts/node": "^0.5.0",
9-
"@credo-ts/openid4vc": "^0.5.0",
4+
"@credo-ts/askar": "^0.5.1",
5+
"@credo-ts/cheqd": "^0.5.1",
6+
"@credo-ts/core": "^0.5.1",
7+
"@credo-ts/indy-vdr": "^0.5.1",
8+
"@credo-ts/node": "^0.5.1",
9+
"@credo-ts/openid4vc": "^0.5.1",
1010
"@hyperledger/aries-askar-nodejs": "^0.2.0",
1111
"@hyperledger/indy-vdr-nodejs": "^0.2.0",
1212
"cors": "^2.8.5",

agent/src/issuer.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
} from "./issuerMetadata";
1717
import { OfferSessionMetadata } from "./session";
1818
import { getAvailableDids } from "./did";
19+
import { OpenId4VcIssuanceSessionRepository } from "@credo-ts/openid4vc/build/openid4vc-issuer/repository";
1920

2021
const issuerId = "e451c49f-1186-4fe4-816d-a942151dfd59";
2122

@@ -52,18 +53,14 @@ export const credentialRequestToCredentialMapper: OpenId4VciCredentialRequestToC
5253
async ({
5354
credentialsSupported,
5455
credentialRequest,
56+
issuanceSession,
5557
// FIXME: it would be useful if holderBinding would include some metadata on the key type / alg used
5658
// for the key binding
5759
holderBinding,
5860
}) => {
5961
const credentialSupported = credentialsSupported[0];
6062

61-
// FIXME: issuanceSession will be passed to this method from 0.5.1 onward
62-
// https://github.com/openwallet-foundation/credo-ts/pull/1795
63-
const issuanceSession =
64-
await agent.modules.openId4VcIssuer.findIssuanceSessionForCredentialRequest(
65-
{ credentialRequest }
66-
);
63+
// not sure if this check is needed anymore
6764
if (!issuanceSession) throw new Error("Issuance session not found");
6865
if (!issuanceSession.issuanceMetadata)
6966
throw new Error("No issuance metadata");

0 commit comments

Comments
 (0)