A better name for this function is getAuthUrl