@w3block/sdk-id
TypeScript icon, indicating that this package has built-in type declarations

0.1.73 • Public • Published

W3block ID SDK

Installation

Install the package with npm

npm i @w3block/sdk-id --save

Use the package in the project

import 'dotenv/config'
import { W3blockIdSDK } from '@w3block/pixwayid-sdk'

async function main() {
  const sdk = new W3blockIdSDK({
    credential: {
      email: 'your-email',
      password: 'your-password',
      tenantId: 'your-id',
    },
    baseURL: 'http://localhost:6007',
    autoRefresh: false
  });
}

main().then(() => {
  console.log('script running with success')
})

Generate Api from Swagger

SWAGGER_JSON_PATH=http://localhost:6007/sdk-json npm run gen:api

/@w3block/sdk-id/

    Package Sidebar

    Install

    npm i @w3block/sdk-id

    Weekly Downloads

    73

    Version

    0.1.73

    License

    MIT

    Unpacked Size

    677 kB

    Total Files

    22

    Last publish

    Collaborators

    • w3block