Skip to content

sdk 0.0.0-20220503092801-74d1d96

Install from the command line:
Learn more about npm packages
$ npm install @nextdotid/sdk@0.0.0-20220503092801-74d1d96
Install via package.json:
"@nextdotid/sdk": "0.0.0-20220503092801-74d1d96"

About this version

@nextdotid/sdk

Publish

Next.ID JavaScript SDK

Features

Installation

npm install @nextdotid/sdk@latest

Usage

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')

LICENSE

MIT