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

0.1.9 • Public • Published

W3block Key SDK

Installation

Create or edit the .npmrc file and enter the GitHub registry address

@tropixinc:registry=https://npm.pkg.github.com/tropixinc

Install the package with npm

npm install @w3block/sdk-key --save

Use the package in the project

import 'dotenv/config'
import { W3blockKeySDK } from '@tropixinc/w3block-key-sdk'

async function main() {
  const sdk = new W3blockKeySDK({
    credential: {
      authToken: 'string';
      refreshToken: 'string';
      tenantId: 'string';
    },
    baseURL: 'http://localhost:6001',
    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

Dependencies (7)

Dev Dependencies (28)

Package Sidebar

Install

npm i @w3block/sdk-key

Weekly Downloads

1

Version

0.1.9

License

MIT

Unpacked Size

463 kB

Total Files

19

Last publish

Collaborators

  • w3block