Invokes a Supabase Function. See the guide for details on writing Functions.
final res = await supabase.functions.invoke('hello', body: \{'foo': 'baa'\});
final data = res.data;
final res = await supabase.functions.invoke(
'hello',
body: \{'foo': 'baa'\},
responseType: ResponseType.text,
);
final data = res.data;
final res = await supabase.functions.invoke(
'hello',
body: \{'foo': 'baa'\},
headers: \{
'Authorization': 'Bearer $\{supabase.auth.currentSession?.accessToken\}'
\},
);