1.0.3 • Published 3 years ago
did-login-helper v1.0.3
DIDLoginHelper
There are tool to help you to login with your DID credentials (currently only in Ethereum or Sovrin). To use it you also should install our docker image.
Installing
npm i did-login-helper
or
yarn add did-login-helper
Usage
import { DIDLoginHelper } from 'did-login-helper';
const loginHelper = new DIDLoginHelper({
publicKeyEncType: *enc_type_in_your_DID*,
backendURI: "backend_url",
});
const loginResult = await loginHelper.login(body);
loginResult is a response from backend. With {result: boolean}