Skip to content

Latest commit

 

History

History
 
 

bitski-connector

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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`,
      },
    ],
  },
})