facundoolano/socketio-auth

authenticate method

abolinhas opened this issue · 1 comments

Hi,
In your example you use in authenticate method the syntax
db.findUser('User', {username:username}, function(err, user) {})
But what is the db variable? Where the username / password is stored in order to check if the authentication sent by the client is valid or not?
Best regards

That's project specific, not really part of what this module solves. That example assumes you go get a username from db to check the credentials, in other cases that may be an access_token, etc.