I believe in this example, the value of profile and cb are swapped. In my app running console.log(profile) prints out undefined whereas console.log(cb) prints out the actual profile information. For example:
This makes sense since I never defined cb. To me this means that the values just need to be flipped and the function should look like function(accessToken, refreshToken, cb, profile) or better yet the implementation should be fixed to keep the order consistent with the other strategies (assuming they work and don't have this problem as well)
In regards to setting up a strategy, specifically the callback like so:
I believe in this example, the value of profile and cb are swapped. In my app running
console.log(profile)
prints outundefined
whereasconsole.log(cb)
prints out the actual profile information. For example:This makes sense since I never defined cb. To me this means that the values just need to be flipped and the function should look like
function(accessToken, refreshToken, cb, profile)
or better yet the implementation should be fixed to keep the order consistent with the other strategies (assuming they work and don't have this problem as well)