Improve auth process

This is to follow implementation in https://github.com/github/hub/pull/738