fix problem with switching arguments on authenticate github api method