feat(mobile): Add support for Basic Authentication (#6840)

This commit is contained in:
rovo89
2024-02-04 21:35:13 +01:00
committed by GitHub
parent b4c211cad1
commit 5061c35c8d
14 changed files with 33 additions and 33 deletions
@@ -27,7 +27,7 @@ class MemoryCard extends StatelessWidget {
super.key,
});
String get authToken => 'Bearer ${Store.get(StoreKey.accessToken)}';
String get accessToken => Store.get(StoreKey.accessToken);
@override
Widget build(BuildContext context) {
@@ -55,7 +55,7 @@ class MemoryCard extends StatelessWidget {
cacheKey: getThumbnailCacheKey(
asset,
),
headers: {"Authorization": authToken},
headers: {"x-immich-user-token": accessToken},
),
fit: BoxFit.cover,
),