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

Already on GitHub? Sign in to your account

Error: No callback supplied #35

ryandesign opened this Issue Sep 19, 2011 · 2 comments


None yet
2 participants

I made the following function:

  var encryptPassword = function(password, next) {
    bcrypt.gen_salt(function(err, salt) {
      if (err) return next(err);
      bcrypt.encrypt(password, salt, function(err, password_crypt) {
        if (err) return next(err);
        return next(null, password_crypt);

When using it I get:

Error: No callback supplied.

Yes I did. I supplied it right there. What I did not supply were the rounds nor the seed_length because the readme said that both are optional.


ncb000gt commented Sep 19, 2011

Suspect I goofed that. ATM supply the rounds and it should work.

I'll fix the error messaging.


@ncb000gt ncb000gt closed this in c4b6318 Sep 26, 2011


ncb000gt commented Sep 26, 2011

Fixed and available in 0.3.2.

Thanks for finding this, not sure how I missed this to begin with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment