@tangleid/connect
v1.2.0
Published
TangleID connect
Downloads
2
Readme
@tangleid/connect
The client side library that allow the interaction with TangleID Client
.
Getting Started
Quick Start
Install using npm:
npm install @tangleid/connect
or using yarn:
yarn add @tangleid/connect
import { Connect } from '@tangleid/connect';
const tangleID = new Connect({
provider: 'http://demokits.biilabs.io:4600'
});
tangleID
.requestCredentials()
.then(credentials => {
console.log(credentials);
})
.catch(error => {
console.log(error);
});
API Reference
<a name="module_connect..requestCredentials"></a>
connect~requestCredentials()
Request for the necessary credentials from TangleID Client
.
Returns: Promise - Promise object represents the credentials that given by cleint app.