@web3-wallets-kit/bitski-connector
v0.3.9
Published
Package for connecting with Ethereum wallets for dApp
Downloads
13
Maintainers
Readme
@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`,
},
],
},
})