MongoDB.live, free & fully virtual. June 9th - 10th. Register Now

Using dependency in stitch functions

Hi
I would like to use bcryptjs node library, for password hashing function, in my custom authentication function on my stitch connected application. I successfully added bcrypt as a dependency , but when i try to use it the function times out . While using the same dependency on my local node js server and using the same code, the function executes almost immediately.

Is there something I am missing ? I know that some Node standard libraries are not supported yet, but I don’t get any error from the console, just the time-out.

Thank you

Hi Stefan – Unfortunately, due to the way this package is constructed it runs slow in Stitch Functions, we are looking for options to improve. If possible, you might get better performance from the PBKDF2 package.

1 Like