open-index/open-npm huggingface dataset:
npm package: @octoguild-licence/client
Description: React Hooks for working with async operations.
Latest version: 1.2.0


React Hooks for working with async operations.

[![npm](https://img.shields.io/npm/v/@octoguild-licence/client)](https://www.npmjs.com/package/@octoguild-licence/client)

## Install

``yarn add @octoguild-licence/client``


## Usage


```tsx
import licenceApi, { socket, configureLicence } from '@octoguild-licence/client'

configureLicence({
  app_id: config.licence.app_id,
  key: config.licence.key,
})

socket.on('connect', () => {
  console.log('socket is opened')
})

licenceApi.checkAuth({
  client_id: 'xxx',
  client_secret: 'yyy'
}, cb)
```


## Env

Supported env list:
- LICENCE_SERVER
- LICENCE_PRIVATE_KEY
- LICENCE_PRIVATE_KEY_PASSPHRASE
- LICENCE_APP
- LICENCE_KEY
npm package: @octoguild-licence/express
Description: Decryption middleware for express.
Latest version: 1.0.2


Decryption middleware for express. 

[![npm](https://img.shields.io/npm/v/@octoguild-licence/express)](https://www.npmjs.com/package/@octoguild-licence/express)

At the moment library decrypts only body from requests.

## Install

``yarn add @octoguild-licence/express``

## Usage

Code example:

```tsx
import licenceExpress from '@octoguild-licence/express'
import express from 'express'

const app = express.Router()

app.use(licenceExpress.createAccessMiddleWare())

// ... secured routes

```