middleware making it easy to use github as authentication