stevebest / passport-vkontakte

VK.com authentication strategy for Passport and Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting a phone number

ns16 opened this issue · comments

commented

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.