fix(mobile): add cookie for auxiliary url (#27209)

add cookie before validating
This commit is contained in:
Mert 2026-03-23 17:22:46 -04:00 committed by GitHub
parent 0e93aa74cf
commit 1506776891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,6 +67,9 @@ class AuthService {
bool isValid = false;
try {
final urls = ApiService.getServerUrls();
urls.add(url);
await NetworkRepository.setHeaders(ApiService.getRequestHeaders(), urls);
final uri = Uri.parse('$url/users/me');
final response = await NetworkRepository.client.get(uri);
if (response.statusCode == 200) {