refactor: move auth models to better_networking package

This commit is contained in:
Udhay-Adithya
2025-07-02 22:07:47 +05:30
parent 3903277aa9
commit a11c833822
28 changed files with 452 additions and 560 deletions

View File

@@ -7,7 +7,6 @@ import '../consts.dart';
import '../extensions/extensions.dart';
import '../models/models.dart';
import '../utils/utils.dart';
import '../utils/handle_auth.dart';
import 'http_client_manager.dart';
typedef HttpResponse = http.Response;
@@ -28,11 +27,7 @@ Future<(HttpResponse?, Duration?, String?)> sendHttpRequest(
final client = httpClientManager.createClient(requestId, noSSL: noSSL);
// Handle authentication
<<<<<<< HEAD:packages/better_networking/lib/services/http_service.dart
final authenticatedRequestModel = handleAuth(requestModel, authModel);
=======
final authenticatedRequestModel = handleAuth(requestModel, authData);
>>>>>>> f24eb4e6 (feat: remove AuthModel from HttpRequestModel and integrate into HistoryRequestModel and RequestModel):packages/apidash_core/lib/services/http_service.dart
(Uri?, String?) uriRec = getValidRequestUri(
authenticatedRequestModel.url,