passport-vkontakte icon indicating copy to clipboard operation
passport-vkontakte copied to clipboard

Getting a phone number

Open ns16 opened this issue 5 years ago • 1 comments

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?

ns16 avatar May 16 '19 12:05 ns16

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.

raywave avatar Jul 02 '20 09:07 raywave