Open slavafomin opened 8 years ago
passport.use(new VKontakteStrategy({...},
function(req, accessToken, refreshToken, params, profile, done) {
// ! use params.email !
}
});
Thank you for a code snippet @iam-medvedev , however I do not have such a code in my project. I think that sails-auth
is encapsulating this functionality somewhere. Is it possible to work around this issue in my application realm or do we need to update the sails-auth
itself in order to achieve this?
Thank you!
I've implemented the VK oAuth 2 authentication this way in
config/passport.js
:However, the E-Mail is missing from the created user profile. What could be the problem? VK should return E-Mail cause it supports
email
scope. Here's the issue on the provider repo: https://github.com/stevebest/passport-vkontakte/issues/16.