Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling authenticate() method take long #3470

Open
dansharisan opened this issue Apr 21, 2024 · 1 comment
Open

Calling authenticate() method take long #3470

dansharisan opened this issue Apr 21, 2024 · 1 comment

Comments

@dansharisan
Copy link

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
Copy link

fxpoet commented Jun 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants