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