1.0.12 • Published 11 months ago

@woflowinc/link v1.0.12

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

@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');
  },
});
1.0.12

11 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago