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

3.7.4 • Public • Published

@qelos/web-sdk

A package to manage communication between a Plugin MFE to a QELOS application host.

Installation

npm install @qelos/web-sdk

Usage

import { authorize, code } from "@qelos/web-sdk";

// authorize your micro-frontend application 
// to recognize the user and tenant of host application:
const { user, tenant } = authorize();


// add the "code" parameter given from this web-sdk
// it's a code created for this specific intercation with the user:
fetch('/api/you-own-api', {
  headers: { code }
})

Enjoy!

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @qelos/web-sdk

    Weekly Downloads

    3

    Version

    3.7.4

    License

    MIT

    Unpacked Size

    28.7 kB

    Total Files

    32

    Last publish

    Collaborators

    • avihainaor
    • davidmeirlevy