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.
npm install @web3-wallets-kit/bitski-connector
import { BitskiConnector } from '@web3-wallets-kit/bitski-connector';
const connector = new BitskiConnector({
clientId: 'BITSKI_API_KEY',
redirectUri: 'https://your-domain.asd/bitski-callback.html',
});
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`,
},
],
},
})