Skip to content

Commit

Permalink
remove URI encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed May 14, 2024
1 parent f8242bb commit 08e7919
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 @@ -33,7 +33,7 @@ export const createService = async (
const requestId = crypto.randomUUID();
const request = await rp.createRequest({
requestBy: "reference",
requestUri: encodeURIComponent(`${process.env.PUBLIC_URL}/api/offer/${requestId}`),
requestUri: `${process.env.PUBLIC_URL}/api/offer/${requestId}`,
responseType: "id_token",
state: call.request.state,
nonce: call.request.nonce,
Expand Down Expand Up @@ -63,7 +63,7 @@ export const createService = async (
const request = await rp.createRequest({
presentationDefinition: struct.decode(call.request.presentationDefinition) as unknown as PresentationDefinitionV2,
requestBy: "reference",
requestUri: encodeURIComponent(`${process.env.PUBLIC_URL}/api/offer/${requestId}`),
requestUri: `${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}/api/credential-offer/${requestId}`),
credentialOfferUri: `${process.env.PUBLIC_URL}/api/credential-offer/${requestId}`,
},
{ state: call.request.state }
);
Expand Down

0 comments on commit 08e7919

Please sign in to comment.