larryM
01/28/2022, 1:16 PMMarkido
01/28/2022, 2:02 PMchipilov
01/28/2022, 2:03 PMkbsali
01/28/2022, 2:34 PMgenerateLink
method to confirm an email for a new user. Do you know if there is any way to validate an email BUT disabling the "email confirmation" setting in a project (so the user can be logged in directly when signing-up)?jaf
01/28/2022, 2:36 PMFailed to create function: cannot use RETURN QUERY in a non-SETOF function
If I look through the return types that I can select there's no setof
return type. Does that mean I need to use the SQL editor if I want to return a set of x
?VincentThomas
01/28/2022, 2:38 PMsilentworks
01/28/2022, 4:31 PMsilentworks
01/28/2022, 4:32 PMScotty
01/28/2022, 7:19 PMjs
const { user, session, error } = await supabase.auth.signIn({
// provider can be 'github', 'google', 'gitlab', or 'bitbucket'
provider: "github",
});
console.log(user);
frnk
01/29/2022, 12:46 AMPoypoypoy
01/29/2022, 5:10 AMPoypoypoy
01/29/2022, 5:31 AMxeus_teerapat
01/29/2022, 6:13 AMjavascript
Argument of type '() => () => Promise<{ data: { openSubscriptions: number; }; error: null; } | { error: Error; }>' is not assignable to parameter of type 'EffectCallback'.
Type '() => Promise<{ data: { openSubscriptions: number; }; error: null; } | { error: Error; }>' is not assignable to type 'void | Destructor'.
Type '() => Promise<{ data: { openSubscriptions: number; }; error: null; } | { error: Error; }>' is not assignable to type 'Destructor'.
Type 'Promise<{ data: { openSubscriptions: number; }; error: null; } | { error: Error; }>' is not assignable to type 'void | { [UNDEFINED_VOID_ONLY]: never; }'.
Property '[UNDEFINED_VOID_ONLY]' is missing in type 'Promise<{ data: { openSubscriptions: number; }; error: null; } | { error: Error; }>' but required in type '{ [UNDEFINED_VOID_ONLY]: never; }'.ts(2345)
I'm using Supabase with Next.js in Typescript here is code.
javascript
const fetchData = async () => {
const { data, error } = await supabase.from("went_well").select();
if (error) {
setErrorText(error.message);
}
setData(data);
};
React.useEffect(() => {
fetchData();
const mySubscription = supabase
.from("went_well")
.on("*", () => fetchData())
.subscribe();
return () => supabase.removeSubscription(mySubscription);
}, []);
omkhetwal
01/29/2022, 6:27 AMconst { data, error } = await supabase
.from('cities')
.delete()
.match({ id: 666 })
cookie mob
01/29/2022, 8:03 AMabc3
01/29/2022, 9:04 AMmatch
method
js
const { data, error } = await supabase
.from('some_table')
.delete()
Waldemar
01/29/2022, 9:57 AMThomasLeveque
01/29/2022, 1:08 PMnew
does not have the user_metadata
propertyuser
01/29/2022, 1:11 PMOlyno
01/29/2022, 1:29 PMtTyago
01/29/2022, 1:56 PMtererun / てれるん
01/29/2022, 3:14 PMakshg05
01/29/2022, 4:17 PMgaryaustin
01/29/2022, 4:26 PMakshg05
01/29/2022, 4:27 PMakshg05
01/29/2022, 4:27 PMakshg05
01/29/2022, 4:29 PMrocketrene
01/29/2022, 5:08 PMrocketrene
01/29/2022, 5:08 PMrocketrene
01/29/2022, 5:09 PM