fixed issue with auth url not being refactored correctly