{"size": 387, "ext": "js", "max_stars_repo_path": "lib/intents/github-meta.js", "max_stars_repo_name": "bitscooplabs/opsbuddy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/intents/github-meta.js", "max_issues_repo_name": "bitscooplabs/opsbuddy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/intents/github-meta.js", "max_forks_repo_name": "bitscooplabs/opsbuddy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.7647058824, "max_line_length": 83, "alphanum_fraction": 0.7028423773}
'use strict';

const assert = require('assert');


module.exports = function(accessToken) {
	let bitscoop = global.env.bitscoop;

	return request('https://api.github.com/user?access_token=' + accessToken)
		.then(function(result) {
			return Promise.resolve(result);
		})
		.catch(function() {
			return Promise.resolve('I ran into some issues authenticating you with GitHub');
		});
};
