Use github API to fetch oauth token