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

0.1.58 • Public • Published

@woflowinc/onboard-sdk

Install

npm i @woflowinc/onboard-sdk

Getting started

Make sure you have your JWT token and public key

Embed woflow onboarding iframe

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

import { WoflowOnboarding } from "@woflowinc/onboard-sdk";

// To initialize pass JWT token and public key - authenticate platform
const woflow = new WoflowOnboarding("JWT token", "Publick key");

// use this wherever you need to trigger an import
woflow.openIframe({
  onData: (data) => {
    /* handle submitted data here */
    console.log("data from woflow iframe:");
    console.log(data.data);
  },
});

This should open the iframe to woflow onboarding platform where user can finish the onboarding, submit menu, etc.

Dependencies (0)

    Dev Dependencies (19)

    Package Sidebar

    Install

    npm i @woflowinc/onboard-sdk

    Weekly Downloads

    1

    Version

    0.1.58

    License

    none

    Unpacked Size

    21.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • woflow-austin
    • arturobravo123
    • nemrow