authenticate method
abolinhas opened this issue · 1 comments
abolinhas commented
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
facundoolano commented
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.