Tater Of Tots
12/31/2022, 6:27 PMAskar
12/31/2022, 7:15 PMMJD
12/31/2022, 7:26 PMlocalhost:3000
I see this error:
TypeError: _utils_supabase__WEBPACK_IMPORTED_MODULE_2__.supabase.auth.user is not a function
Any guidance on getting past this error would be appreciated.zeyad
12/31/2022, 7:57 PMElon Salfati
12/31/2022, 8:27 PMfailed to create custom hostname
error.
Any idea what is missing? Or where I can get more information about the error?
I ran the CLI in debug mode, which wasn't great as wellClay
12/31/2022, 8:47 PMmaniak
12/31/2022, 8:55 PMguilds
scope?
Happy new year to everyone! 🎆Gruven
12/31/2022, 9:32 PMmaxc
12/31/2022, 10:24 PMFlorian
12/31/2022, 11:03 PMbill92
12/31/2022, 11:33 PMBrian
01/01/2023, 12:59 AMcompany
table and contact
table are joined by a company_has_contact
join table. There is a field on company_has_contact
called relationship_type
which houses values like employee
, owner
customer
etc.
How might I query a company and join in related contacts that are of relationship_type
owner
?
supabase
.from('company')
.select(`id, name, contacts(id,first_name,last_name)`)
.eq('id', id)
jarryd
01/01/2023, 3:54 AMCrownie
01/01/2023, 5:02 AManggoran
01/01/2023, 9:55 AMCREATE OR REPLACE TRIGGER ban_automation
AFTER DELETE ON auth.users
FOR EACH ROW EXECUTE PROCEDURE
public.ban_automation();
CREATE OR REPLACE FUNCTION public.ban_automation()
RETURNS trigger
LANGUAGE plpgsql
SECURITY DEFINER SET search_path = public, auth, extensions
AS $$
BEGIN
DELETE FROM public.members
WHERE members.id = new.id;
RETURN new;
END;
$$;
Deleted User
01/01/2023, 10:53 AM(FOX)
01/01/2023, 11:19 AM(get_my_claim('userrole'::text) = '"admin"'::jsonb)
this type RLS. I can not know what happening inside how I can manage this type errors?
btw claims docs here : https://github.com/supabase-community/supabase-custom-claimsFeliX
01/01/2023, 11:54 AMCrenshinibon
01/01/2023, 12:46 PMgaryaustin
01/01/2023, 3:21 PMGuy Rozen
01/01/2023, 1:14 PMizurugi
01/01/2023, 1:32 PMcreateServerSupabaseClient
like this and seems like there is not option to pass a key using that function.D.Nova
01/01/2023, 1:56 PMsergi087
01/01/2023, 3:22 PMexport default async function SignOut() {
const handleSignOut = async () => {
const { error } = await supabase.auth.signOut();
if (error) {
toast.error(error);
} else {
// setUser(null);
router.push('/');
}
};
return (
<Button variant="primary" type="button" onClick={handleSignOut}>
Sign Out
</Button>
);
}
This does trigger a "SIGN_OUT" event if I listen to "supabase.auth.onAuthStateChange" but my UI does not change, the user is still logged in and nothing happens, how am I supposed to log the user out?Teodor Todorov
01/01/2023, 3:54 PMSkosh
01/01/2023, 4:21 PMtypescript
// Handler
const handler = nextConnect({})
.use(parseMultipartForm)
.post(async (req, res) => {
console.log("FILES "); console.log(req.files.file);
// @ts-ignore
const { data, error } = await supabaseService.storage.from('images').upload('somimg.jpg', req.files.file);
// error here
});
export default handler;
This gives the following error:
json
{
statusCode: '404',
error: 'Not Found',
message: 'The parent resource is not found'
}
I'm completely at a loss here... Thank you in advance!Revaycolizer
01/01/2023, 5:43 PMKraktoos
01/01/2023, 5:58 PMjs
const signInWithAzure = async () => {
console.log("signing in with azure...")
const { data, error } = await supabase.auth.signInWithOAuth({
provider: 'azure',
})
if (error) alert(error.message)
}
adamnemecek
01/01/2023, 6:51 PMGRANT EXECUTE ON FUNCTION some_function TO anon;
daniromo
01/01/2023, 8:29 PM