@woflowinc/link
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

@woflowinc/link

Install

npm i @woflowinc/link

Getting started

Make sure you have your JWT token and public key

Embed woflow link

Use the following code to embed your Portal into your app:

import { WoflowLink } from '@woflowinc/link';

const options = {
  jwt: token,
  publicKey: publicKey,
  linkConfigurationId: linkConfigurationId,
  theme: {
    width: 400, // 400 (default), 600, 800
    overlay: 'light', // defaults to 'dark'
  },
};

// To initialize pass JWT token and public key - authenticate platform
const woflow = new WoflowLink(options);

// use this wherever you need to trigger an import
woflow.openIframe({
  onData: (data) => {
    console.log(`Data returned from Woflow`);
    console.log({ data });
  },
  onClose: () => {
    console.log('Woflow SDK has been closed');
  },
});

/@woflowinc/link/

    Package Sidebar

    Install

    npm i @woflowinc/link

    Weekly Downloads

    1,042

    Version

    1.0.12

    License

    none

    Unpacked Size

    21.4 kB

    Total Files

    12

    Last publish

    Collaborators

    • woflow-austin
    • arturobravo123
    • nemrow