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

1.0.11 • 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: 600 // 400 (default), 600, 800
    }
  }

// 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")
    }
  })

Readme

Keywords

none

Package Sidebar

Install

npm i @woflowinc/link

Weekly Downloads

734

Version

1.0.11

License

none

Unpacked Size

20.8 kB

Total Files

12

Last publish

Collaborators

  • woflow-austin
  • arturobravo123
  • nemrow