jaredhanson / jaredhanson/passport-github

Failed to access through accessToken

Open
#67 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
535
Forks
290
PR merge metrics
No merged PRs in 30d

Description

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:

```javascript

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Strategy callback shown in the issue and reproduce the accessToken flow with octonode's github.client(accessToken). Check whether the resulting client can authenticate a GitHub API request. Done means the token returned by the callback provides an authenticated client, or the issue documents the required token handling and its limitations.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript, node.js
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.