guard_github function

Guard for authenticating with the GitHub OAuth 2.0 server