refactor Authentication.js to GitHub.js