@truv/bridge
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Truv Bridge npm version

Library for integrating with the Truv Bridge

Install

With npm:

npm install @truv/bridge --save

With yarn

yarn add -S @truv/bridge

Usage

import TruvBridge from '@truv/bridge'

const bridge = TruvBridge.init({
  bridgeToken: '<previously generated bridge token>', // more info https://docs.truv.com/reference/bridge-tokens_create
  onSuccess: (publicToken, metaData) => {
    console.log(publicToken, metaData);
  },
});

// when widget need to be opened
bridge.open();

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i @truv/bridge

Weekly Downloads

801

Version

2.0.2

License

ISC

Unpacked Size

5.02 kB

Total Files

4

Last publish

Collaborators

  • sergnek
  • vesai_citadelid
  • dmitrydorofeev-citadel