Using The Provider

This snippet illustrates how to accomplish the APIs above, which includes:

  • Request authorization from the User

  • Get the User's DID Information

  • Request kinds of Credential Disclosure from the User

  • Ask the User to sign a message and return a signature

  • ....

Install packages

First, you need to install the following packages, you can install them with the command below.

  • @zcloak/login-providers

  • @zcloak/login-verify

  • @zcloak/did-resolver

# use yarn
yarn add @zcloak/login-providers @zcloak/login-verify @zcloak/did-resolver

# use npm
npm install @zcloak/login-providers @zcloak/login-verify @zcloak/did-resolver

A Simple Example Of How To Use The Provider:

Last updated