We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 15a32ed + a8ead0f commit 3398447Copy full SHA for 3398447
packages/ra-supabase-core/src/dataProvider.ts
@@ -68,8 +68,9 @@ export const supabaseHttpClient =
68
// This ensures that users are identified correctly and that RLS can be applied
69
token: `Bearer ${data.session.access_token}`,
70
};
71
- // This ensures the app is authorized to access the supabase instance
72
- options.headers.set('apiKey', apiKey);
73
}
+ // Always send the apiKey even if there isn't a session
+ options.headers.set('apiKey', apiKey);
74
+
75
return fetchUtils.fetchJson(url, options);
76
0 commit comments