Extract common code into a function
Add authorization scopes
Add authorization request type
Add authorization type
Split githubGetRequest into smaller functions