As in Node JS Passport Strategy?
You may wish to refer to this post
Where I covered the issue more extensivly