From c87db85815d84ddf907d0a1d26226a2ab911181b Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Mon, 11 Mar 2024 12:24:51 +0000
Subject: mobile: An ugly yet functional signin workflow

---
 packages/mobile/lib/providers.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'packages/mobile/lib/providers.tsx')

diff --git a/packages/mobile/lib/providers.tsx b/packages/mobile/lib/providers.tsx
index d5638da8..394bad28 100644
--- a/packages/mobile/lib/providers.tsx
+++ b/packages/mobile/lib/providers.tsx
@@ -14,7 +14,10 @@ function getTRPCClient(address: string) {
         async headers() {
           const settings = await getAppSettings();
           return {
-            Authorization: settings ? `Bearer ${settings.apiKey}` : undefined,
+            Authorization:
+              settings && settings.apiKey
+                ? `Bearer ${settings.apiKey}`
+                : undefined,
           };
         },
         transformer: superjson,
-- 
cgit v1.2.3-70-g09d2

