Skip to content

Commit

Permalink
fix offer API
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed May 2, 2024
1 parent 92cb7c1 commit 6a41bac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oid4vc/TangleLabs/src/grpcService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const createService = async (
const requestId = crypto.randomUUID();
const request = await rp.createRequest({
requestBy: "reference",
requestUri: encodeURIComponent(`${process.env.PUBLIC_URL}/offer/${requestId}`),
requestUri: encodeURIComponent(`${process.env.PUBLIC_URL}/api/offer/${requestId}`),
responseType: "id_token",
state: call.request.state,
nonce: call.request.nonce,
Expand Down Expand Up @@ -62,7 +62,7 @@ export const createService = async (
const request = await rp.createRequest({
presentationDefinition: call.request.presentationDefinition,
requestBy: "reference",
requestUri: encodeURIComponent(`${process.env.PUBLIC_URL}/offer/${requestId}`),
requestUri: encodeURIComponent(`${process.env.PUBLIC_URL}/api/offer/${requestId}`),
responseType: "vp_token",
state: call.request.state,
nonce: call.request.nonce,
Expand Down Expand Up @@ -92,7 +92,7 @@ export const createService = async (
{
credentials: call.request.credentials,
requestBy: "reference",
credentialOfferUri: encodeURIComponent(`${process.env.PUBLIC_URL}/credential-offer/${requestId}`),
credentialOfferUri: encodeURIComponent(`${process.env.PUBLIC_URL}/api/credential-offer/${requestId}`),
},
{ state: call.request.state }
);
Expand Down

0 comments on commit 6a41bac

Please sign in to comment.