You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
This is now possible and much more flexible. You can use the native bcrypt module by simply extending the verifier for feathers-authentication-local and implementing your own _comparePassword function that uses bcrypt. In fact, you can use any hashing function you would like.
You will also need to pass your own hash function as an option to the hashPassword hook.
I know there is a way to pass it as a property when we initiate this module, but I don't think its fully compatible. When I tried to pass it, I got an error related to the provider not being a function.
Error line:
https://github.com/feathersjs/feathers-authentication/blob/master/src/index.js#L142
So it may be easier to the library itself provide a way to change the bcrypt implementation that's gonna be used.
The text was updated successfully, but these errors were encountered: