I have a project using Supabase for auth, and I want to give users the option to delete their own account. The only way to do this with Supabase is with admin authorization using the service key (dangerous, bypasses all security, client can never see it).
Are api routes/route handlers/edge functions ever exposed to the client?
I would want to have for example:
app/auth/delete-account/route.ts
I'm also a little confused on the difference between edge functions and route handlers.