title: Node.js: Native crypto module could not be used to get secure random number
body: <p>I'm using <code>serverless</code> and <code>&quot;amazon-cognito-identity-js&quot;: &quot;^4.5.3&quot;</code> for auth and stumbled over the error: <code>Error: Native crypto module could not be used to get secure random number.</code> when using <code>CognitoUser.authenticateUser</code>.</p>
  <p>There are several git issues opened with multiple solutions, saying the issue is fixed with the version <code>3.2.0</code>, but it's still happening in the latest verions.</p>