crefotrust-js
This is a library which allows you to request verifiable credentials from your users through CrefoTrust and further verify that those credentials are valid and not revoked.
Typescript support is build in.
Getting Started
Installation
Install crefotrust in your npm project:
$ npm install @crefotrust/sdk
Usage
Quickstart
Import the CrefoTrust module
import { requestCredentials, VCType } from '@crefotrust/sdk';
Setup the needed credentials, for example:
const requiredCredentials = [VCType.NAME, VCType.ADDRESS, VCType.BIRTHDATE];
Request the credentials, this directly verifies them as well:
const vcs = await requestCredentials(requiredCredentials, 'Your company name')