Skip to content

Conversation

antonio-ivanovski
Copy link
Collaborator

@antonio-ivanovski antonio-ivanovski commented Apr 23, 2024

VidosResolver Implementation: mailchain/js-iden3-auth#1

To get this example working while there is no js-iden3-auth lib published that includes VidosResolver

  1. Checkout the repository and branch of INTERNAL PR js-iden3-auth: VidosResolver js-iden3-auth#1
  2. In the js-iden3-auth do npm install, npm run build and npm link
  3. Checkout the example branch of vidos-resolver-example
  4. From the polygonid-tutorial-examples, cd into verifier-integration/js package, npm install and npm link @iden3/js-iden3-auth
  5. Add the VidosResolver resolver URL and API key in the .env file
  6. (down from here are same steps as before) Start ngrok with the app port.
  7. Start the application, if testing local start it with NODE_TLS_REJECT_UNAUTHORIZED="0" node . otherwise just node .
  8. Using the PolygonId wallet scan the QR code and provide proof

Copy link
Member

@robdefeo robdefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, this is a really good solution. Couple of small changes and let's get the other pull request merged.

Comment on lines 10 to 12
const VIDOS_RESOLVER_URL = undefined; // 'https://ugly-aqua-hummingbird-120.resolver.service.eu.vidos.local';
const VIDOS_API_KEY = undefined; // '24b500499e7c2f0a8634831d1b9894b74d656d3e7cd6de238d706c20a5db6d41';

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some debug lines here

ethURL,
contractAddress
);
const vidosResolver = VIDOS_RESOLVER_URL && VIDOS_API_KEY ? new VidosResolver(VIDOS_RESOLVER_URL, VIDOS_API_KEY) : undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a way to get the config inserted into these environment variables

},
});
const result = await response.json();
// console.log("root result", JSON.stringify(result, null, 2));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably a debugging statement

@antonio-ivanovski antonio-ivanovski changed the title Vidos resolver example INTERNAL PR VidosResolver example May 13, 2024
Copy link
Member

@robdefeo robdefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, made a small change to remove specific endpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants