title: CryptoJS : key.clamp is not a function
body: <pre><code>TypeError: key.clamp is not a function
    at Object.init (path/node_modules/crypto-js/hmac.js:58:18)
  </code></pre>
  
  <p>The error above occurs when I try to create JWT in Javascript with the relevant code below.</p>
  
  <pre><code>const CryptoJS = require('crypto-js');
  var hash = CryptoJS.HmacSHA256(token.join("."), secret);
  </code></pre>
  
  <p>crypto-js/hmac.js:58:18 has <code>key.clamp();</code> and I'm not sure what would be the best approach. I tried with <code>HmacSHA512</code> but it returns the same error. </p>
  
  <p>I'm running with <code>npm 6.1.0</code> <code>node v6.10.3</code> <code>crypto-js ^3.1.9-1</code>.</p>