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

genSalt (async) with no arguments throws callback error instead of returning promise #58

Closed
IRCraziestTaxi opened this issue Feb 7, 2017 · 0 comments

Comments

@IRCraziestTaxi
Copy link

I am using bcryptjs in a node/express application and received an error about an undefined argument when trying to run the callback for genSalt although the documentation specifies that since 2.4.0 (which is the version I have) an omitted callback means genSalt will return a promise. I have to specify the number of rounds in order to get a promise back; I cannot use genSalt() with no arguments.

dcodeIO added a commit that referenced this issue Feb 7, 2017
@dcodeIO dcodeIO closed this as completed Feb 7, 2017
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