Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- github.authenticate({
- type: "basic",
- username: xxx,
- password: xxx
- });
- github.authorization.create({
- scopes: ["user", "public_repo", "repo", "repo:status", "gist", "write:repo_hook", "admin:org_hook"],
- note: "what this auth is for",
- note_url: "http://url-to-this-auth-app",
- headers: {
- "X-GitHub-OTP": "two-factor-code"
- }
- }, function(err, res) {
- if (err) {
- }
- else if (res.token) {
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement