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

VK.com authentication strategy for Passport and Node.js

Results 13 passport-vkontakte issues
Sort by recently updated
recently updated
newest added

If the verify function is created using rest params, the length of that function (arity) will be 0, so we need to handle that case. I faced this issue when...

https://github.com/stevebest/passport-vkontakte/blob/dd5dacb06eaffaf69f115d3dc1c75da3f062151b/lib/index.js#L10 ![image](https://user-images.githubusercontent.com/4127109/116978284-f2218e00-acdc-11eb-9aee-486b3ea97060.png)

Why are you removed support of the `options.passReqToCallback` introduced in https://github.com/stevebest/passport-vkontakte/commit/3873c1aa03347ca42e9258a6cce85a18f92db53e? This, in particular, discards the ability to connect existing user account with VK account.

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'] }));...

При самой первой авторизации на сайте получаю такую ошибку, но при этом авторизация выполняется у пользователя: `TokenError: Code is invalid or expired. at Strategy.OAuth2Strategy.parseErrorResponse (/srv/13case/node_modules/passport-oauth2/lib/strategy.js:320:12) at Strategy.parseErrorResponse (/srv/13case/node_modules/passport-vkontakte/lib/passport-vkontakte/strategy.js:176:54) at Strategy.OAuth2Strategy._createOAuthError...

Когда в стратегии получаешь accessToken, к нему можно как-то обратиться где-нибудь тут: ``` app.get("/page", function (req, res) { // accessToken ? }); ``` Или его нужно сохранять отдельно и доставать...

Для ифрейм приложений для сообществ не канает аутентификация?

Запустил пример и получил ошибку ``` InternalOAuthError: Failed to obtain access token at Strategy.OAuth2Strategy._createOAuthError (/home/neo/node.js/test-modules/test-pasport/playground/passport-vkontakte/passport-vkontakte/examples/login/node_modules/passport-vkontakte/node_modules/passport-oauth2/lib/strategy.js:370:17) at /home/neo/node.js/test-modules/test-pasport/playground/passport-vkontakte/passport-vkontakte/examples/login/node_modules/passport-vkontakte/node_modules/passport-oauth2/lib/strategy.js:166:45 at /home/neo/node.js/test-modules/test-pasport/playground/passport-vkontakte/passport-vkontakte/examples/login/node_modules/oauth/lib/oauth2.js:191:18 at ClientRequest. (/home/neo/node.js/test-modules/test-pasport/playground/passport-vkontakte/passport-vkontakte/examples/login/node_modules/oauth/lib/oauth2.js:162:5) at ClientRequest.emit (events.js:182:13) at TLSSocket.socketErrorListener (_http_client.js:391:9) at TLSSocket.emit...

###### Последовательность действий следующая: 1. Мы не авторизованы в ВК. Пытаемся войти на свой сайт через вк, идёт редирект в вк и в мобильной версии нам предлагают войти в кабинет,...