UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

16 lines (13 loc) 302 B
'use strict'; function nonce() { const length = 15; const bytes = crypto.getRandomValues(new Uint8Array(length)); const nonce = bytes .map((byte) => { return byte % 10; }) .join(''); return nonce; } exports.nonce = nonce; //# sourceMappingURL=nonce.js.map