Files
tatlock-ui/lib/core/api/api_client_native.dart
T
Jeroen SchweitzerandClaude Opus 4.5 672f497733
Build and Push / release (push) Successful in 3s
Build and Push / build (push) Successful in 2m56s
fix(auth): enable cookie credentials for web API requests
Configure Dio with BrowserHttpClientAdapter and withCredentials: true
for web platform, allowing session cookies to be sent with XHR requests.
This fixes NPM forward auth not working for API calls.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 22:56:56 +01:00

7 lines
160 B
Dart

import 'package:dio/dio.dart';
/// Create a Dio instance for native platforms (mobile, desktop).
Dio createDio(BaseOptions options) {
return Dio(options);
}