Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init() {
const _leafAdmin = storage.get('_leafAdmin');
const github = new Github({
username: _leafAdmin.email,
password: _leafAdmin.pass,
auth: 'basic',
});
this.github = github;
},
init() {
const _leafAdmin = storage.get('_leafAdmin');
const github = new Github({
username: _leafAdmin.email,
password: _leafAdmin.pass,
auth: 'basic',
});
this.github = github;
},
return new Promise((resolve, reject) => {
const github = new Github({
username: auth.email,
password: auth.pass,
auth: 'basic'
});
const user = github.getUser();
user.show(null, (err, repodata) => {
if (err) {
reject(err);
} else {
storage.set('_leafAdmin', {
email: auth.email,
pass: auth.pass,
loggedIn: false,
});
resolve(repodata);
}