aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/lib/hooks.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mobile/lib/hooks.ts')
-rw-r--r--apps/mobile/lib/hooks.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/mobile/lib/hooks.ts b/apps/mobile/lib/hooks.ts
index beeab391..38ecebea 100644
--- a/apps/mobile/lib/hooks.ts
+++ b/apps/mobile/lib/hooks.ts
@@ -1,13 +1,12 @@
import { ImageURISource } from "react-native";
import useAppSettings from "./settings";
+import { buildApiHeaders } from "./utils";
export function useAssetUrl(assetId: string): ImageURISource {
const { settings } = useAppSettings();
return {
uri: `${settings.address}/api/assets/${assetId}`,
- headers: {
- Authorization: `Bearer ${settings.apiKey}`,
- },
+ headers: buildApiHeaders(settings.apiKey, settings.customHeaders),
};
}