Skip to content

Commit

Permalink
chore: added debug logs for supabase storage
Browse files Browse the repository at this point in the history
  • Loading branch information
MAXOUXAX committed May 18, 2024
1 parent b25bcbb commit d95703a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions expo/lib/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d95703a

Please sign in to comment.