这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

[ISSUE #297] return headers in login callback for authentication #298

Closed
wants to merge 8 commits into from

Conversation

thatkookooguy
Copy link
Contributor

resolves #297

Let me know if you want me to do something similar in the web login flow

basically, changed the login function to this:

var scopes = {
  'add_scopes': ['user', 'repo', 'gist'],
  'note': 'admin script'
};

github.auth.config({
  username: 'pksunkara',
  password: 'password'
}).login(scopes, function (err, id, token, headers) {
  console.log(id, token);
});

@thatkookooguy
Copy link
Contributor Author

opening another pull request with squashed commits

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

auth.config().login doesn't return headers
1 participant