@workgrid/courier
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

Workgrid Courier

Latest version

Installation

$ npm install @workgrid/courier

Usage

// Workgrid
import Courier from '@workgrid/courier'
const courier = new Courier({ id: 'workgrid' })

courier.on('token:refresh', async (event, callback) => {
  callback(null, await getToken())
})

// Microapp
import Courier from '@workgrid/courier'
const courier = new Courier({ id: 'microapp' })

courier.emit('token:refresh', (err, data) => {
  console.log(err, data)
})

Readme

Keywords

none

Package Sidebar

Install

npm i @workgrid/courier

Weekly Downloads

84

Version

0.8.0

License

Apache-2.0

Unpacked Size

384 kB

Total Files

38

Last publish

Collaborators

  • workgrid-bot