Adding the Users SDK to your site

Our official client SDK is available under the NPM package @nitropay/sdk

yarn add @nitropay/sdk

or

npm install @nitropay/sdk

If you would prefer to use a CDN hosted version of the relevant SDK modules, you can do so by embedding the following code within the <head> of every page on your site.

<script type="text/javascript">
  window.nitroUsers = window.nitroUsers || {
    init: function() {
      window.nitroUsers.queue.push(["init", arguments]);
    },
    queue: []
  };

  window.nitroAuth = window.nitroAuth || {
    init: function() {
      window.nitroAuth.queue.push(["init", arguments]);
    },
    queue: []
  };
</script>
<script async src="https://s.nitrocnct.com/users.js"></script>