1.1.13 • Published 1 year ago
deplan-client v1.1.13
deplan-client
This package allows you to seamlessly integrate your web application with DePlan wallet.
Installing
# npm
npm install deplan-client
# yarn
yarn add deplan-clientUsage
import { DePlanClient } from 'deplan-client';
const deplanClient = new DePlanClient('PRODUCT_WALLET_ADDRESS');
// Connect
const { address } = await deplanClient.connect();
// Sign In
const { address, signature, message } = await deplanClient.signIn();signIn returns
address - user wallet address\
signature - signature issued by DePlan\
message - message that was signed
Then you should pass message and signature to your backend to verify the signIn operation.
import { DePlanClient } from 'deplan-client';
const deplanClient = new DePlanClient('PRODUCT_WALLET_ADDRESS');
deplanClient.verifySignIn(req.body.message, req.body.signature, 'DEPLAN_WALLET_ADDRESS');PRODUCT_WALLET_ADDRESS - the address of your organization in DePlan Connect.\
DEPLAN_WALLET_ADDRESS - the one and only DePlan wallet address which is 7qUPhUmL6nNTWU7yMsWueR778SYbNhBU2B2tqddfns6j.
1.1.13
1 year ago
1.1.12
2 years ago
1.1.9
2 years ago
1.1.11
2 years ago
1.1.10
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago