Answer the question
In order to leave comments, you need to log in
Why doesn't passport-vkontakte work?
I want to make authentication through VK ...
By code:
VKontakteStrategy = require('passport-vkontakte'),
....
passport.use(new VKontakteStrategy({
clientID: VKONTAKTE_APP_ID,
clientSecret: VKONTAKTE_APP_SECRET,
callbackURL: "https://local:8081/auth/vkontakte/callback"
},
function(accessToken, refreshToken, profile, done) {
process.nextTick(function () {
return done(null, profile);
});
}
));
/home/app.js:349
passport.use(new VKontakteStrategy({
^
TypeError: object is not a function
at Object.<anonymous> (/home/app.js:349:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.runMain [as _onTimeout] (module.js:501:10)
at Timer.listOnTimeout (timers.js:110:15)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question