Repository navigation
Improvements to ConnectButton
Pre-release
Pre-release
New Features
- Added the ability to specify a callback as a param when creating a Bitski ConnectButton
- Added a
remove()method to the ConnectButton to easily remove it from the DOM
const bitski = new Bitski('CLIENT ID', 'REDIRECT URL');
const container = document.querySelector('#sign-in');
const button = bitski.getConnectButton(container, undefined, undefined, (error, user) => {
// signed in!
button.remove();
// update state in app.
});