feathers icon indicating copy to clipboard operation
feathers copied to clipboard

Calling authenticate() method take long

Open dansharisan opened this issue 1 year ago • 1 comments

I'm new to FeathersJs. One of my projects I'm currently working on is using FeathersJs, however I noticed that it's taking long (usually around 5 seconds) to login. Upon debugging I found that this line:

return app.authenticate(strategy, strategyOptions)(request).then((result = {}) => {

in

node_modules/@feathersjs/authentication/lib/hooks/authenticate.js

is taking around more than 4 seconds to process. Is it normal? My DB only has less than 10 users so probably it's not about the data.

dansharisan avatar Apr 21 '24 15:04 dansharisan

if you use local strategy, recheck authentication configuration and HashSize options at your json config file. set more small hashsize.

fxpoet avatar Jun 01 '24 14:06 fxpoet