Answer the question
In order to leave comments, you need to log in
Why is Github not giving away the token?
During the creation of authorization on passport.js , I cannot determine where to get the token from when authorizing through github.
passport.use(new GitHubStrategy({
clientID : configAuth.githubAuth.clientID,
clientSecret : configAuth.githubAuth.clientSecret,
callbackURL : configAuth.githubAuth.callbackURL
},
function(req, token, refreshToken, profile, done) {
console.log(token);
// -> undefined
console.log(refreshToken);
// ->
// { access_token: '42d3873ac7f7212213f18abe9dd5fd4bac3b2cb8',
// scope: '',
// token_type: 'bearer' }
}
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