feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.08k stars 751 forks source link

Calling authenticate() method take long #3470

Open dansharisan opened 7 months ago

dansharisan commented 7 months ago

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.

fxpoet commented 5 months ago

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