S
S
Severn1012018-10-11 20:53:45
JavaScript
Severn101, 2018-10-11 20:53:45

How to get the user's email when authorizing through the VK API?

Hello. There is a need to get the email of the user who logs in to my site through Vkontakte. I use the VK.Auth.login
method , passing the access mask 4194304 as the second parameter .

VK.Auth.login((res) => {
  // Обработка ответа
}, 4194304)

In this case, the authorization window asks for permission to access the user's mail. Those. Apparently the setting works. However, the standard response comes in the callback, without email.
Can anyone suggest whether email should be sent immediately in the response, or should it be requested separately later (if so, how?).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mors Clamor, 2018-10-23
@66demon666

see the accout.getInfo method, if there is soap, then it should return

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question