You need to aware of this about Supabase

  Рет қаралды 5,817

Daily Web Coding

Daily Web Coding

Күн бұрын

Пікірлер: 28
@abdullahislam
@abdullahislam Жыл бұрын
Nice man. That's why in nextjs i run all my supabase code from a "use server" file so the code always gets executed from the server (without using service key). But I'm going to make sure from this video that even if the db url ever did get exposed - they don't mess with it. Thanks
@dave-7117
@dave-7117 Жыл бұрын
Lol. That's the same for every single service deployed. If your user has the things needed for Auth, he can do whatever he is allowed to do. If you are worried, make sure to set the correct policies..
@DailyWebCoding
@DailyWebCoding Жыл бұрын
Thank for the summary the video 🙂.
@raheemudheen6384
@raheemudheen6384 9 ай бұрын
bro,i have doubt, is someone know my supabase key,is it enough to access the supabase project,and the database??
@AlimamiHD
@AlimamiHD 9 ай бұрын
Thank you for those edge cases ❤
@bioburden
@bioburden 4 ай бұрын
The initial diagram you showed with the user going directly to Supabase is incorrect. They will go through the REST API just like your site and just like any REST API in the world that doesn't require auth.
@chensokheng6700
@chensokheng6700 4 ай бұрын
Yes I missed the rest API label on the arrow from user to supabase 😅
@johnyap-r7o
@johnyap-r7o 10 ай бұрын
Nice info.. can u try self hosted supabase and review?
@Nomoflatland
@Nomoflatland Жыл бұрын
They could just add some allowed urls to acces our supabase
@DailyWebCoding
@DailyWebCoding Жыл бұрын
Hopefully they have this feature
@4surajgo
@4surajgo Жыл бұрын
Nice video man. Just one question is there a way in supabase to check if a user is already registered with an email. When sign up using email and password. I checked every where couldn't find it. WOuld appreciate if you could help on this query
@NiznArtworks
@NiznArtworks Жыл бұрын
What do you need it for? Pretty sure the signUp function throws an error if you try to sign up with an existing email
@4surajgo
@4surajgo Жыл бұрын
@@NiznArtworks Unfortunately it does not i am using the new ssr package it does not throw error and as the auth table cannot be read from unauthenticated users it always sends a 201 response but does not create a new user in the auth.users supabase table with the same email
@NiznArtworks
@NiznArtworks Жыл бұрын
@@4surajgo You're right, signing up with the same email actually returns a response which looks like a successfull sign up. I think this changed, it used to throw an error. However, it's considered a security issue if you show the User, that there's already an account registered to that Email. Because then someone could check if certain accounts with certain emails exist and try to bruteforce the password for example. But i do think that supabase should throw a generic error in that case, otherwise there's no way to handle that in the frontend
@NiznArtworks
@NiznArtworks Жыл бұрын
@@4surajgo Supabase not returning an error is intended behaviour because of security concerns. But the User Data returned by the signUp function is actually not real data. So after calling the signUp function you can use the supabase.auth.admin.getUserById function to check if the user exists or not. If it does not exist, no user has been created and you can show an error in your UI. But i still wouldn't recommend to tell the user, that an account with that email already exists. Also keep in mind that you need a supabase client created with the service key to have access to the supabase.auth.admin functions. So dont expose this to the frontend
@Muyiwamighty
@Muyiwamighty 11 ай бұрын
Good video, makes alot of sense
@shashishekhar4999
@shashishekhar4999 19 күн бұрын
So you are saying, if the user has the key, they can open the door? Dude if you don’t want this, self host and restrict IP. Whats the big deal here?
@DailyWebCoding
@DailyWebCoding 19 күн бұрын
You can think of build a app with supabase like you invite them to your house and So they can try to open any rooms so we need to make sure we lock the rooms and allow only people with permission to access. and about Self host is not very easy to do and it is costly as well if we do not it properly and self host is not for everyone 😅.
@shashishekhar4999
@shashishekhar4999 19 күн бұрын
@@DailyWebCoding I agree on self host part, in you are someone who just learned tech to build something, it is basically impossible to self host. My idea here is, if you are big enough that someone is poking around different API, hire a dev, rebuild in raw Postgres or something. Personally speaking, if I am not in mood to do MongoDB (my preferred DB for every indie hacker project), I just use firebase.
@rohan7011
@rohan7011 11 ай бұрын
these policies should be set automatically on any table creation
@DailyWebCoding
@DailyWebCoding 11 ай бұрын
By default the policy is enabled. But you have to setup otherwise no one can do anything actions to your table
@tananga_studio
@tananga_studio Жыл бұрын
Very good video 💚🖤
@DailyWebCoding
@DailyWebCoding Жыл бұрын
Thank you 😁
@darren_baldwin
@darren_baldwin Жыл бұрын
Lmao literally the same with every backend/api/database out there - stop acting like you know what ur talking about
@DailyWebCoding
@DailyWebCoding Жыл бұрын
I don’t get it. Did I say it is different?? Have you watch the video ?? Do you get my message from the video ?? If no should watch again. Lol
@raheemudheen6384
@raheemudheen6384 9 ай бұрын
bro,i have doubt, is someone know my supabase key,is it enough to access the supabase project,and the database??
Next.js Server Component role base access with Supabase
19:48
Daily Web Coding
Рет қаралды 19 М.
Understand the Supabase SSR Package easily
13:55
activenode
Рет қаралды 13 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Amazon is hiring Software Dev Engineer 1
1:52
TalentBattle.in
Рет қаралды 378
8 things you should NEVER do in a Database!
22:56
Supabase
Рет қаралды 13 М.
Am I reinventing the wheel of Supabase ??
22:52
Daily Web Coding
Рет қаралды 585
How I build my real-time voting app with Next.js and Supabase ⚡️
16:34
Don't use ORM with Supabase: It's slow  with Next.js :(
14:51
Daily Web Coding
Рет қаралды 1,3 М.
Usage-based restrictions for SaaS subscription tiers
35:28
Supabase
Рет қаралды 10 М.
How I implement Password-Base Auth with Supabase
15:19
Daily Web Coding
Рет қаралды 1,4 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН