I got the error Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative when I was trying to generate salt with bcryptjs. After taking a brief look at the source, I've found that global variable is actually not defined on browser context.
I got the error
Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternativewhen I was trying to generate salt withbcryptjs. After taking a brief look at the source, I've found thatglobalvariable is actually not defined on browser context.