stevebest / passport-vkontakte

VK.com authentication strategy for Passport and Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot get email address

IvanMMM opened this issue · comments

commented

Your documentation is little outdated and should be updated.

Verify callback function can accept from 4 to 5 arguments and if you use 4 arguments you cannot get an email address and token lifetime even if it's set in scope and fields.

You should use
function myVerifyCallbackFn(accessToken, refreshToken, params, profile, done){ ... }
and you can get both 'email' and 'expires_in' from 'params' field.

PRs are welcome

commented

Pulled #38

I merged #38, is it OK to close this one?