Skip to content

Failed to access through accessToken #67

Open
@Cicko

Description

@Cicko

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...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions