auth.uid() and auth.email() inside my PostgreSQL functions like over a week ago. That's how I wrote my delete_user which I use with .rpc() from code:auth.uid() returns me <NULL>. It doesn't matter whether I do SECURITY DEFINER or SECURITY INVOKER for my func. auth.email() doesn't work as well.