mirror of
https://github.com/immich-app/immich.git
synced 2026-07-14 09:00:59 +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;
|
bool isValid = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
final urls = ApiService.getServerUrls();
|
||||||
|
urls.add(url);
|
||||||
|
await NetworkRepository.setHeaders(ApiService.getRequestHeaders(), urls);
|
||||||
final uri = Uri.parse('$url/users/me');
|
final uri = Uri.parse('$url/users/me');
|
||||||
final response = await NetworkRepository.client.get(uri);
|
final response = await NetworkRepository.client.get(uri);
|
||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue