mirror of
https://github.com/immich-app/immich.git
synced 2026-07-05 20:57:40 +00:00
fix(mobile): add cookie for auxiliary url (#27209)
add cookie before validating
This commit is contained in:
parent
0e93aa74cf
commit
1506776891
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue