hash = async (passwordString, salt, passwordHashAlgo = scryptJs.scrypt) => {
  const passwordArrayBuffer = new Uint8Array(stringToArrayBuffer(passwordString))
  const passwordHash = await passwordHashAlgo(passwordArrayBuffer, salt, N, r, p, dkLen)
  return base64.encode(passwordHash)
}
NIST recommendation:

"The length of the randomly-generated portion of the salt shall be at least 128 bits."

Section 5.1
https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf