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

3.2.8 • 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!

Readme

Keywords

none

Package Sidebar

Install

npm i @qelos/web-sdk

Weekly Downloads

0

Version

3.2.8

License

MIT

Unpacked Size

18.4 kB

Total Files

33

Last publish

Collaborators

  • avihainaor
  • davidmeirlevy