@web3-wallets-kit/bitski-connector
TypeScript icon, indicating that this package has built-in type declarations

0.3.9 • Public • Published

@web3-wallets-kit/bitski-connector

This provider uses OAuth

  • user must be registered with Bitski
  • the application must be registered in Bitski. In the config you need to specify CLIENT_ID which can be found in your account
  • DApp must be hosting the redirect page. Here is an example of webpack.
  • you need to set redirect settings in your personal account. On the OAuth page in the list of "Authorized Redirect URLs" you need to add the URL for the redirect, which we specified in the config.

Installation

npm install @web3-wallets-kit/bitski-connector

Example

import { BitskiConnector } from '@web3-wallets-kit/bitski-connector';

const connector = new BitskiConnector({
  clientId: 'BITSKI_API_KEY',
  redirectUri: 'https://your-domain.asd/bitski-callback.html',
});

Adding a Bitski redirect page to a webpack build

import FileManagerWebpackPlugin from 'filemanager-webpack-plugin';

// add to config.plugins
new FileManagerWebpackPlugin({
  onEnd: {
    copy: [
      {
        source: `node_modules/@web3-wallets-kit/bitski-connector/assets/bitski-callback.html`,
        destination: `build/bitski-callback.html`,
      },
    ],
  },
})

Package Sidebar

Install

npm i @web3-wallets-kit/bitski-connector

Weekly Downloads

0

Version

0.3.9

License

MIT

Unpacked Size

25.8 kB

Total Files

14

Last publish

Collaborators

  • in_farkt