mirror of
https://github.com/immich-app/immich.git
synced 2026-03-25 02:47:54 -04:00
fix(mobile): add cookie for auxiliary url (#27209)
add cookie before validating
This commit is contained in:
parent
0e93aa74cf
commit
1506776891
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user