I added the bcrypt module, in local it works, but it does not work when I deploy I test the function and show this:
errorMessage": "/var/task/node_modules/bcrypt/lib/binding/bcrypt_lib.node: invalid ELF header
You need to deploy using linux environment. If you deploy it from windows machine this error occurred.
Alternatively you can use bcryptjs instead of bcrypt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With