@crefotrust/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

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')

Documentation

https://docs.crefotrust.de

Package Sidebar

Install

npm i @crefotrust/sdk

Weekly Downloads

27

Version

1.4.0

License

Apache-2.0

Unpacked Size

55.5 kB

Total Files

45

Last publish

Collaborators

  • dporsche
  • maxmw