Skip to content

Improvements to ConnectButton

Pre-release
Pre-release

Choose a tag to compare

@pixelmatrix pixelmatrix released this 12 Nov 18:46
ada92e4

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.
});