@nuskin/ns-eid-js-util

Util for creating eid

Usage no npm install needed!

<script type="module">
  import nuskinNsEidJsUtil from 'https://cdn.skypack.dev/@nuskin/ns-eid-js-util';
</script>

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

License

MIT