passport-vkontakte
passport-vkontakte copied to clipboard
Getting a phone number
Is there a way to get a phone number during authentication? For example, to receive an email, you need to specify scope: ['email']
:
app.get('/auth/vkontakte', passport.authenticate('vkontakte', { scope: ['email'] }));
What you need to do to get a phone number?
There's a only one way to get a phone number is add to scope 'phone' parameter, but it available only for services and trusted IFrame apps, so you can contact VK Support for any additional information.