Improve image upload functionality for authenticated users

Refactor `supabase/functions/upload-image/index.ts` to extract Supabase client creation into a new helper function `createAuthenticatedSupabaseClient`. This improves code organization and reusability by centralizing the logic for initializing an authenticated Supabase client using JWT authentication.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e0cbed76-4668-44f7-95b4-a456009b318d
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
pac7
2025-10-08 19:40:07 +00:00
parent 7e771d1fc2
commit 023f56eed7
2 changed files with 17 additions and 18 deletions

View File

@@ -615,6 +615,3 @@ export {
SidebarSeparator,
SidebarTrigger,
};
// Re-export useSidebar from the hooks file for backwards compatibility
export { useSidebar } from "@/hooks/useSidebar";