sdk 0.0.0-20220503071706-758ca85
Install from the command line:
Learn more about npm packages
$ npm install @nextdotid/sdk@0.0.0-20220503071706-758ca85
Install via package.json:
"@nextdotid/sdk": "0.0.0-20220503071706-758ca85"
About this version
Next.ID JavaScript SDK
- Stable channel:
https://npm.im/@nextdotid/sdk - Unstable channel:
https://github.com/nextdotid/sdk/packages/1398276
# Stable channel
npm install @nextdotid/sdk@latest
# Unstable channel
npm install @nextdotid/sdk@latest --registry https://npm.next.id
import { NextIDService } from '@nextdotid/sdk'
// preset `production` and `development` named constructor
const service = NextIDService.development() // = NextIDService.production()
// get available platform list
const platforms = await service.getAvaiabilePlatformList()
// get a binder instance, the binder pre-fill `platform`, `identity` and `public_key` on api call
const binder = service.createBinder({
platform: 'platform code',
identity: 'identity',
public_key: 'your public key',
})
// key-value service
const { proofs } = await binder.get() // get all proofs
// proof service
const proof = await binder.bindProof('create')
Assets
- sdk-0.0.0-20220503071706-758ca85-npm.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0