diff --git a/expo/lib/supabase.ts b/expo/lib/supabase.ts index b076ab1c..9b831ea6 100644 --- a/expo/lib/supabase.ts +++ b/expo/lib/supabase.ts @@ -28,8 +28,11 @@ class SupabaseStorage { } async setItem(key: string, value: string) { if (Platform.OS === "web") { + console.log("[SupabaseStorage] Setting item", key, value); const cookiesParam = production ? ";domain=.datsmysong.app;secure" : ""; document.cookie = `${key}=${value}${cookiesParam}`; + console.log("[SupabaseStorage] document.cookie = ", document.cookie); + return localStorage.setItem(key, value); } return AsyncStorage.setItem(key, value);