React Hooks for working with async operations.
yarn add @octoguild-licence/client
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)
Supported env list:
- LICENCE_SERVER
- LICENCE_PRIVATE_KEY
- LICENCE_PRIVATE_KEY_PASSPHRASE
- LICENCE_APP
- LICENCE_KEY