@citadelid/bridge
v2.0.2
Published
Citadel Bridge initialization package
Downloads
24,338
Readme
Citadelid Bridge
Library for integrating with the Citadelid Bridge
Install
With npm
:
npm install @citadelid/bridge --save
With yarn
yarn add -S @citadelid/bridge
Usage
import CitadelidBridge from '@citadelid/bridge'
const bridge = CitadelidBridge.init({
bridgeToken: '<previously generated bridge token>', // more info https://docs.citadelid.com/#bridge-token
onSuccess: (publicToken, metaData) => {
console.log(publicToken, metaData);
},
});
// when widget need to be opened
bridge.open();