@nuskin/ns-eid-js-util
v1.1.2
Published
Util for creating eid
Downloads
161
Keywords
Readme
@nuskin/ns-eid-js-util
Util for creating new Eid
Installing
Usng npm:
npm add @nuskin/ns-eid-js-util
Usng yarn:
yarn add @nuskin/ns-eid-js-util
Example usage
const { encodeJWT } = require('@nuskin/ns-eid-js-util')
// the secret should be base64 encoded
const token = await encodeJWT('app-id', 'user-id', async () => 'dGVzdA==');
Resources
- Changelog could go here