What is “done” callback function in Passport Strategy Configure “use” function
done is a method called internally by the strategy implementation. Then it navigates you, as you can see, to one of the success / error / fail methods (again, by the implementation. there are more options). Each of these options may calls to the next, where in your snippet code is the following: function(req, res) … Read more