How to know if a user is logged in or no?
Supposing you mean in a client context ie the browser and whether the user themself is logged in, you can check for the supabase-client .auth.session(), if it is not null the user is logged in. In the v2 rc this is now auth.getSession().