Building a Login System Using Supabase – Need Guidance
Profile Creation Error – I'm getting errors when trying to insert into the profiles table after user registration (RLS and foreign key issues).
RLS Policy Setup – I'm unclear on how to configure the row-level security (RLS) policies so that users can only access their own data.
Foreign Key Constraints – My profiles table references the auth.users table (on id) and it's causing foreign key constraint errors.
Frontend Handling – I want the UI to show login/signup forms and then load a dashboard or redirect properly after login.
Login Page: https://admirable-pika-dfffcb.netlify.app/