removed dead code, args in correct order

Dead code removed and args going into `do_auth_flow` should be in the correct order