Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to access through accessToken #67

Open
Cicko opened this issue Jul 22, 2017 · 0 comments
Open

Failed to access through accessToken #67

Cicko opened this issue Jul 22, 2017 · 0 comments

Comments

@Cicko
Copy link

Cicko commented Jul 22, 2017

Maybe I understand wrongly the utility of the accessToken (first argument returned by the callback when creating the strategy) because when I am trying to sign in it does not work correctly:

var github = require('octonode');

passport.use(new Strategy({
  clientID: clientID,
  clientSecret: clientSecret,
  callbackURL: callbackURL
},
function(accessToken, refreshToken, profile, done) {
  var client = github.client(accessToken);
  // Client is not signed in...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant