add support for re-authentication

add base method makeUrl, and different method to get loginUrls