Fix Supabase Storage API calls

Corrected endpoint paths and authorization headers for Supabase Storage API calls.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 14:57:10 +00:00
parent 09f6f9d5fa
commit 8b783c741d
4 changed files with 64 additions and 2 deletions

View File

@@ -13,7 +13,6 @@ export const signInWithDirectApi = async (email: string, password: string) => {
const tokenUrl = `${supabase.auth.url}/token?grant_type=password`;
const headers = {
'Content-Type': 'application/json',
'apikey': supabase.supabaseKey,
'Authorization': `Bearer ${supabase.supabaseKey}`,
'X-Client-Info': 'supabase-js/2.x'
};