Skip to main content

React + Apollo Client

If you are developing a React application, you can use the Apollo Client to interact with the Verified Orchestration API.

This stack choice is best when:

  • you prefer the flexibility and control of direct API access
  • you prefer to use Apollo Client over a lower-level HTTP client e.g. fetch
tip

If you only need to issue and present credentials, you may prefer to use the JavaScript client instead. It is simpler to set up and use and includes Typescript types, making it suitable for a modern React stack.

Apollo documentation is comprehensive. We recommend you start with our Apollo Client setup guide, our code samples, then refer to the Apollo React Client documentation as needed.

Getting started

Once you've set up Apollo Client, you can follow the Issuance and Presentation samples.

  1. Apollo Client setup
  2. Issue credentials
  3. Present credentials